Re: Problems with CURL using an HTTP Proxy on PHP5

From: Date: Wed, 21 Dec 2011 15:35:43 +0000
Subject: Re: Problems with CURL using an HTTP Proxy on PHP5
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-316078@lists.php.net to get a copy of this message
On Fri, Dec 16, 2011 at 10:09 PM, Francisco M. Marzoa Alonso <francisco@marzoa.com> wrote: > > I know it is NOT a problem with the website, because if I comment out > the line curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, 1) disabling the use > of a proxy, it works fine. > > I know the proxy is working fine, because if I use curl from command > line like: > > curl -x 1.2.3.4:8888 http://mycheckhost.com/ > CURLOPT_HTTPPROXYTUNNEL is not for enabling/disabling proxy, it's for proxy tunneling. On the command line you should try curl --proxytunnel -x 1.2.3.4:8888 http://mycheckhost.com/ to check if tunneling works. Do you really need a tunnel? Cheers, Matijn

« previous php.general (#316078) next »