Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: phranque
I need to try and replicate an error on a site, but I'm not sure how to do it.
When "HTTP_HOST" is not set (which comes from the browser IIRC) the site errors.
How can I test this? I need to disable this HTTP_HOST value being sent but can't see where I can do this in IE/Firefox etc.
I'm trying to find a way of stopping the HTTP_HOST being sent by the browser.
I'm slightly suspicious that someone/something is sending these requests at my server with malicious intent (either way, I need to amend the code to cope with it being empty).
For the manual process, do something like fire up Hyperterminal, connect to your-site.example.com, port 80, turn on local echo (so you can see what you're doing), and type in the HTTP request. e.g.,
GET / HTTP/1.0<return>
GET /your/page.html HTTP/1.0<return>