0

我正在使用 mule 的 http 组件作为出站调用正在发送“307”重定向请求的休息服务,并且 HTTP 端点没有处理重定向请求。我的意思是,HTTP 组件没有处理重定向到另一个 URL 的请求。像 Apache 等其他 HTTP 客户端正在处理!

是终点的预期行为还是我做错了什么。

INFO 2015-01-06 15:13:23,193 [[test].connector.http.mule.default.receiver.04] org.mule.transport.http.HttpsClientMessageDispatcher: Received a redirect, but followRedirects=false. Response code: 307 Temporary Redirect

4

1 回答 1

2

您需要将出站端点的followRedirects标志设置为true

<http:outbound-endpoint followRedirects="true" .... />
于 2015-01-06T10:38:47.530 回答