You'll want to connect to the IP address, but set the Host header to the host (e.g. www.example.com). Assuming you're using LWP, it might look like this:
$ua->get($url, Host => $host);Here, $url contains the full URL, where you can use the IP or any hostname that resolves to the correct IP, and $host contains the hostname you actually want to go to.
Hope this helps!
In reply to Re: request URL from a specified IP address
by anneli
in thread request URL from a specified IP address
by butchie3980
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |