in reply to Direct a LWP connection to a different host
if your only concern is LWP, then you can do this on a per UA basis using proxy settings...
use LWP::UserAgent; my $u = LWP::UserAgent->new; $u->proxy("http","http://www.apache.org/" +); print $u->get("http://google.com/")->as_string;
UPDATE: your milage may vary based on the HTTP Server you connect to, see followup replies for details
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Direct a LWP connection to a different host
by Aristotle (Chancellor) on Jan 31, 2005 at 07:40 UTC | |
by Corion (Patriarch) on Jan 31, 2005 at 07:45 UTC | |
by Aristotle (Chancellor) on Jan 31, 2005 at 07:56 UTC | |
by hossman (Prior) on Jan 31, 2005 at 08:18 UTC |