note 15147 added to function.curl-setopt
| From: | marioaner at gmx dot net | Date: | Wed, 29 Aug 2001 17:03:08 +0000 |
| Subject: | note 15147 added to function.curl-setopt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17308@lists.php.net to get a copy of this message | ||
CURLOPT_INTERFACE
Another important option someone forgot to document. Similar to the command line equivalent, this
option can be used to communicate using a particular network interface or IP address.
curl_setopt ($ch, CURLOPT_INTERFACE, "192.168.1.2");
This is very important if you need to track traffic resulting from heavy curl usage by diffrent
users on a single machine.
This is *not* CURLOPT_FTPPORT, as this options is used for other things.
http://www.php.net/manual/en/function.curl-setopt.php