56 CONNECT之后从代理接收到HTTP代码403吗? [英] 56 Received HTTP code 403 from proxy after CONNECT?

查看:193
本文介绍了56 CONNECT之后从代理接收到HTTP代码403吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用cUrl从我的网页生成销售线索时,我收到在CONNECT之后从代理收到56的HTTP代码403"错误.该站点的SSL证书已过期.

I am getting an "56 Received HTTP code 403 from proxy after CONNECT" Error while generating a lead to salesforce using cUrl from my web page. SSL certificate of the site is already expired.

已更新:

我的代码如下:

  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");

推荐答案

添加

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

在Apache代理的 httpd_proxy.conf 中的 ProxyRequests On 下面

below ProxyRequests On in httpd_proxy.conf of apache proxy

例如:

ProxyRequests On
AllowCONNECT 443 563 5000

5000 是目标地址的端口.

这篇关于56 CONNECT之后从代理接收到HTTP代码403吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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