note 88140 added to function.curl-setopt
| From: | mail at ebayclub dot ru | Date: | Mon, 12 Jan 2009 16:32:48 +0000 |
| Subject: | note 88140 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149100@lists.php.net to get a copy of this message | ||
Hi
How connecting via proxy server? I am trying (see examlple) but connection request is bad. Please
help me!
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // в пеÑеменнÑÑ
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // пеÑеÑ
одим
авÑомаÑом на ÑедиÑекÑ
curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/4.30 (compatible; MSIE 5.01; Windows NT
5.0)');
curl_setopt($ch, CURLOPT_PROXYUSERPWD, "login:pass");
curl_setopt($ch, CURLOPT_PROXYPORT, "80");
curl_setopt($ch, CURLOPT_PROXY, "1.1.1.1");
curl_setopt($ch, CURLOPT_URL,"http://www.ebay.com");
$result = curl_exec($ch);
curl_close($ch);
echo($result);
----
Server IP: 195.54.192.44
Probable Submitter: 127.0.0.1
----
Manual Page -- http://www.php.net/manual/en/function.curl-setopt.php
Edit -- https://master.php.net/note/edit/88140
Del: integrated -- https://master.php.net/note/delete/88140/integrated
Del: useless -- https://master.php.net/note/delete/88140/useless
Del: bad code -- https://master.php.net/note/delete/88140/bad+code
Del: spam -- https://master.php.net/note/delete/88140/spam
Del: non-english -- https://master.php.net/note/delete/88140/non-english
Del: in docs -- https://master.php.net/note/delete/88140/in+docs
Del: other reasons-- https://master.php.net/note/delete/88140
Reject -- https://master.php.net/note/reject/88140
Search -- https://master.php.net/manage/user-notes.php