Home  |  Linux  | Mysql  | PHP  | XML
Date:Wed Dec 21 15:35:43 2011
Subject:Re: Problems with CURL using an HTTP Proxy on PHP5
On Fri, Dec 16, 2011 at 10:09 PM, Francisco M. Marzoa Alonso
<[email protected]> 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 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 http://mycheckhost.com/ to check if tunneling works.
Do you really need a tunnel?


Navigate in group php.general at sever news.php.net
Previous Next

© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.