2017-03-03 1 views
2

Ich erhalte eine "56 erhalten HTTP-Code 403 von Proxy nach CONNECT" Fehler beim Generieren einer Führung zu Salesforce mit cUrl von meiner Webseite. Das SSL-Zertifikat der Website ist bereits abgelaufen.56 Empfangen von HTTP-Code 403 vom Proxy nach CONNECT?

AKTUALISIERT:

mein Code ist wie folgt:

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

Antwort

2

hinzufügen

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

unter ProxyRequests On in httpd_proxy.conf von Apache Proxy

zB:

ProxyRequests On 
AllowCONNECT 443 563 5000 

5000 ist Zieladresse.

Verwandte Themen