Mule HTTP出站处理程序可以重定向请求吗? [英] can Mule HTTP out-bound handler redirect requests?
问题描述
我正在使用mule的http组件作为出站来调用rest服务,该服务正在发送"307"重定向请求,而HTTP端点未处理该重定向请求. 我的意思是,HTTP组件未处理对另一个URL的重定向请求.例如,其他HTTP客户端(如Apache等)正在处理!
i am using http component of mule as a outbound to call a rest service which is sending a '307' redirect request , and HTTP endpoint is not handling the redirect request . what i mean is, HTTP component is not handling the redirect request to another URL .like, other HTTP clients like Apache etc are handling !
是终点的预期行为还是我做错了什么?
is it the expected behavior of the end point or am i doing anything wrong .
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 .
You need to set the followRedirects flag of the outbound endpoint to true.
<http:outbound-endpoint followRedirects="true" .... />
这篇关于Mule HTTP出站处理程序可以重定向请求吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!