【问题标题】:56 Received HTTP code 403 from proxy after CONNECT?56 CONNECT 后从代理收到 HTTP 代码 403?
【发布时间】:2017-03-03 06:23:34
【问题描述】:

我在使用我的网页中的 cUrl 生成销售人员潜在客户时收到“连接后从代理接收到的 56 HTTP 代码 403”错误。该站点的 SSL 证书已过期。

更新:

我的代码如下:

  curl_setopt($curl, CURLOPT_URL, $_url);
  curl_setopt($curl, CURLOPT_POST, count($field));
  curl_setopt($curl, CURLOPT_POSTFIELDS, $query_data);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($curl, CURLOPT_HEADER, 1);
  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
  curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);
  curl_setopt($curl, CURLOPT_USERAGENT, "cusom module");

【问题讨论】:

    标签: php curl salesforce ssl-certificate php-openssl


    【解决方案1】:

    添加

    AllowCONNECT port[-port] [port[-port]] ...
    

    httpd_proxy.conf 的 apache 代理中的 ProxyRequests On 下方

    例如:

    ProxyRequests On
    AllowCONNECT 443 563 5000
    

    5000 是目的地址的端口。

    【讨论】:

    • 我们应该在哪里添加上述代码?
    猜你喜欢
    • 2017-06-25
    • 2017-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-13
    • 2021-08-21
    • 1970-01-01
    • 2014-10-10
    相关资源
    最近更新 更多