【问题标题】:Charles proxy localhost to https查尔斯代理本地主机到https
【发布时间】:2018-10-08 22:34:52
【问题描述】:

我正在尝试使用 Charles Web 代理代理 curl soap 请求。

curl \
  --header "Host: https://soapapi.com" \
  --header "Content-Type: text/xml;charset=UTF-8" \
  --header "SOAPAction: http://soapapi.com/RequestAction" \
  --data "@/request-v2.0.6.xml" http://localhost:8888/cta/sys2/soap11/endpoint-v2-0

这导致http://https://soapapi.com/cta/sys2/soap11/endpoint-v2-0

有没有办法通过 localhost 代理到 https?也许替换协议和域。

【问题讨论】:

    标签: curl soap proxy charles-proxy


    【解决方案1】:

    好的,我找到了方法。有一个重写选项。

    在 Host: 标头中删除协议。并代理到http://localhost:8888

    工具菜单下有一个重写选项。这将打开重写窗口。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-31
      • 2015-07-08
      • 2018-08-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多