| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
configuring curl with proxy servers
From: Pragya Ratna Bajracharya <pragyabchar_at_gmail.com>
Date: Mon, 30 Jun 2008 17:39:55 +0545
Hello all,
Based on this following example
<?
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.example.com');
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY, 'fakeproxy.com:1080');
curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'user:password');
$data = curl_exec();
curl_close($ch);
?>
When i try to run the above script, it returns false on the $data. Is there
I am using PHP Version 4.4.8 and the curl installed on the server is
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info