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

butchie3980 has asked for the wisdom of the Perl Monks concerning the following question:

Hello all:
I wanted to test an http get from an internal web server that is serving up several domains.
the idea is to do the request to the IP, but ask for the URL
one way to test is to edit the hosts file and trick my local machine into thinking www.example.com is at the IP address.
That won't work because I need to test dozens of servers, and dozens of URLs, and I don't want to change a host entry multiple times
so I'd love to set up something where I specify IP address and then the URL that the server should be responding to at that IP.
is there a way to do this?