Given a freshly created LWP::UserAgent object, how can I tell it what Local IP and Port to use for it request.
For example, I want the request to come from an alias IP on the nic card, not the primary IP.
I've seen this snippet on the net...
@LWP::Protocol::http::EXTRA_SOCK_OPTS = ( LocalAddr => $my_ip_and_port + );
But it appears to have no effect, assuming LocalAddr => '1.2.3.4:8080'
In reply to LWP and LocalIP/LocalPort by jk2addict
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |