On 01 Jun 15:52, Mark Rogers wrote:
David Reynolds wrote:
If I understand what you're saying correctly (and it took me a couple of reads to get to the point I'm at now, so it's quite possible I don't..), I think you might want to script something like
telnet server.ip.address 80 GET / HTTP/1.1 Host: www.the-virtualhost-you-want-to-test.com
That way you are talking to the server you think the site is on, regardless of the DNS.
You're spot on with what I'm trying to do. And yes, the above should work.
However, using something like curl would allow me to handle stuff like sessions and https without jumping through too many hoops, if I decide to do that (I don't really need to right now, though).
Thanks for clarifying what I am trying to do, though, since I did a bad job of explaining it!
wget will let you override headers... so...
wget --header="Host: foo.bar" http://the.ip.add.ress/
Would be very similar to what you want.
Hope that 'elps.
Cheers,