can Mule HTTP out-bound handler redirect requests?

一个人想着一个人 提交于 2019-12-12 04:39:58

问题


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


回答1:


You need to set the followRedirects flag of the outbound endpoint to true.

<http:outbound-endpoint followRedirects="true" .... />


来源:https://stackoverflow.com/questions/27796215/can-mule-http-out-bound-handler-redirect-requests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!