56 连接后从代理接收到 HTTP 代码 403?
56 Received HTTP code 403 from proxy after CONNECT?
在我的网页上使用 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");
添加
AllowCONNECT port[-port] [port[-port]] ...
低于 ProxyRequests On
在 httpd_proxy.conf
的 apache 代理
例如:
ProxyRequests On
AllowCONNECT 443 563 5000
5000
是目标地址的端口。
在我的网页上使用 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");
添加
AllowCONNECT port[-port] [port[-port]] ...
低于 ProxyRequests On
在 httpd_proxy.conf
的 apache 代理
例如:
ProxyRequests On
AllowCONNECT 443 563 5000
5000
是目标地址的端口。