note 82882 added to function.curl-setopt
| From: | skylightatlistru at osu1 dot php dot net | Date: | Wed, 30 Apr 2008 09:31:34 +0000 |
| Subject: | note 82882 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138933@lists.php.net to get a copy of this message | ||
OMG! I've joust found kinda bug:
YES, you can set an IP for curl to use by using this statement: curl_setopt($curl,
CURLOPT_INTERFACE, $ip);
NO, you CAN NOT set another IP for the same curl object. I mean if u do curl_setopt($curl,
CURLOPT_INTERFACE, $ip2); - it wont work!
So to change an IP you need to re-create curl object (curl_close, then curl_init).
----
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/82882
Del: integrated -- https://master.php.net/note/delete/82882/integrated
Del: useless -- https://master.php.net/note/delete/82882/useless
Del: bad code -- https://master.php.net/note/delete/82882/bad+code
Del: spam -- https://master.php.net/note/delete/82882/spam
Del: non-english -- https://master.php.net/note/delete/82882/non-english
Del: in docs -- https://master.php.net/note/delete/82882/in+docs
Del: other reasons-- https://master.php.net/note/delete/82882
Reject -- https://master.php.net/note/reject/82882
Search -- https://master.php.net/manage/user-notes.php