Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Direct a LWP connection to a different host

by thospel (Hermit)
on Jan 31, 2006 at 15:36 UTC ( [id://526769]=note: print w/replies, xml ) Need Help??


in reply to Direct a LWP connection to a different host

Another way is this:
#!/usr/bin/perl -w use strict; use LWP::Simple; my $url = 'http://www.google.com'; my $backup_host = 'www.apache.org'; @LWP::Protocol::http::EXTRA_SOCK_OPTS = (PeerAddr => $backup_host); getprint $url;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://526769]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-20 01:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found