In order to test the response from a particular server, sometimes I
need to send the host header in the request to a URI that points to a
specific server IP.
For example, with curl I do this like:
curl -I -s -H "Host:
www.mydomain.com"
http://192.168.1.1/index.html
I've tried to replicate this type of request in Fiddler by dragging a
request to the Request Builder and changing the host name in the URL
box to the desired IP and making sure the Host: header is set to
www.mydomain.com in the Request Headers box.
The problem is, that when you hit Execute, Fiddler takes the IP listed
in the URL and re-writes the request header with the IP as the Host:
name.
It would be nice if Fiddler would leave the Host header in the Request
Headers box intact and send the request to the IP listed in the URL.
Perhaps there is a workaround for this? Short of spoofing the host
name every time I want to test a specific server?