【问题标题】:can Mule HTTP out-bound handler redirect requests?Mule HTTP 出站处理程序可以重定向请求吗?
【发布时间】:2015-01-06 18:38:47
【问题描述】:

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

【问题讨论】:

    标签: mule mule-studio mule-component


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-08-19
      • 2014-03-25
      • 2020-06-05
      • 1970-01-01
      • 2023-02-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多