http://www.perlmonks.org?node_id=932289


in reply to request URL from a specified IP address

Try to set the target IP address as proxy server for LWP:

my $ua = LWP::UserAgent->new; $ua->proxy('http', 'http://192.168.12.34:80/');

Communication with proxy servers is slightly different from "plain" HTTP communication (mostly: the URL is part of the GET/POST request, not only the path part), but I didn't find a webserver not supporting this.