curl-and-php
Re: Specify source IP address
From: shiplu <shiplu.net_at_gmail.com>
Date: Sat, 5 Dec 2009 19:29:17 +0700
Date: Sat, 5 Dec 2009 19:29:17 +0700
On Sat, Dec 5, 2009 at 7:02 PM, shiplu <shiplu.net_at_gmail.com> wrote:
> Hello,
> Is there any way to specify source ip address when curling?
> In POSIX its int bind(int sockfd, const struct sockaddr *addr,
> socklen_t addrlen);
> And in PHP its bool socket_bind ( resource $socket , string $address
> [, int $port= 0 ] )
I just found this can be done by CURLOPT_INTERFACE option.
-- A K M Mokaddim My talks, http://talk.cmyweb.net Follow me, http://twitter.com/shiplu SUST Programmers, http://groups.google.com/group/p2psust Innovation distinguishes bet ... ... (ask Steve Jobs the rest) _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2009-12-05