note 82882 deleted from function.curl-setopt by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 17:22:27 +0000 |
| Subject: | note 82882 deleted from function.curl-setopt by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154974@lists.php.net to get a copy of this message | ||
Note Submitter: skylight at list ru
----
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).