Mule HTTP出站处理程序可以重定向请求吗? [英] can Mule HTTP out-bound handler redirect requests?

查看:128
本文介绍了Mule HTTP出站处理程序可以重定向请求吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆