Mule HTTP 出站处理程序可以重定向请求吗?
can Mule HTTP out-bound handler redirect requests?
我正在使用 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
您需要将出站端点的 followRedirects 标志设置为 true。
<http:outbound-endpoint followRedirects="true" .... />
我正在使用 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
您需要将出站端点的 followRedirects 标志设置为 true。
<http:outbound-endpoint followRedirects="true" .... />