List, Ok I got this in: @LWP::Protocol::http::EXTRA_SOCK_OPTS = (LocalAddr => "66.236.xx.yy"); my $ua = LWP::UserAgent->new( \ agent=>'Mozilla/4.0', \ timeout=>10) or die($!);
But I get this: Name "LWP::Protocol::http::EXTRA_SOCK_OPTS" used only once: possible typo at ./thing.pl line 28. Google says this is cause I only write the option, never read in my script. This is caused by #!/usr/bin/perl -w That seems odd, shouldn't the read in LWP somewhere fix it? /B ----- Original Message ----- From: "David Busby" <[EMAIL PROTECTED]> To: "Andy Lester" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, September 30, 2003 15:21 Subject: Re: Bind to specific IP > My computer has multiple IP addresses. I would like the local socket > connection (outbound) that LWP::UserAgent will use to be 66.236.xx.yy, not > the default of 66.236.aa.bb. So if I have like 4 IP's on a machine > LWP::UserAgent will pick the default, but I want a specific one. Like > calling: > > socket(); > bind(); > connect(); > > Now my client will come from a specific IP, port I don't care. > > /B > > > ----- Original Message ----- > From: "Andy Lester" <[EMAIL PROTECTED]> > To: "David Busby" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, September 30, 2003 15:24 > Subject: Re: Bind to specific IP > > > > At 3:09 PM -0700 9/30/03, David Busby wrote: > > >List, > > > How can I make LWP::UserAgent bind to a specific IP address? I > cannot > > >find in archives or with google. > > > > What exactly do you mean "bind to a specific IP address"? > > > > xoa > > -- > > Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance