in reply to HTTP::Request::Common - how to bind to specific IP address?

I dug into the source, and I found @LWP::Protocol::http::EXTRA_SOCK_OPTS. I think (untested) the following will do the trick:
push(@LWP::Protocol::http::EXTRA_SOCK_OPTS, LocalHost => ... );

The value for LocalHost can be an IP address or a domain name.

Replies are listed 'Best First'.
Re^2: HTTP::Request::Common - how to bind to specific IP address?
by dmgo (Initiate) on Aug 07, 2011 at 01:34 UTC
    Current version of LWP::UserAgent has local_address function for this purpose.