【问题标题】:Https url data download issue with apache camelapache camel的Https url数据下载问题
【发布时间】:2019-12-13 15:57:09
【问题描述】:

我在使用 apache camel https4 调用时遇到了一个独特的问题。我的情况如下:

  1. 我必须在请求正文中使用身份验证凭据(请求标识符)向第三方发出 post https 请求。 - 这工作正常 示例网址:https4://?httpClientConfigurer=proxyClientConfigurer

  2. 成功的响应会给我一个下载 url 来请求文件下载。此 url 以 https://?args= 格式返回,如果我通过浏览器调用,则会立即下载所有文件。

  3. 但是,为了通过 apache camel 调用它,我必须使用 https4 并且需要附加 httpClientConfigurer=proxyClientConfigurer 来下载请求 url。所以最终的 url 类似于 https4://?args=&httpClientConfigurer=proxyClientConfigurer,这是它失败的部分。

服务器将其视为新请求并查找不存在的身份验证/信息,因此调用失败。 我不知道我在这里做错了什么?

【问题讨论】:

    标签: apache-camel


    【解决方案1】:

    好吧,我没有通过 Camel 找到解决方案,但我继续使用带有下载 url 的普通 Http Get。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-07-12
      • 1970-01-01
      • 1970-01-01
      • 2019-05-07
      • 1970-01-01
      • 2016-11-25
      • 1970-01-01
      相关资源
      最近更新 更多