O
ohaya
Hi,
I was doing some testing to try to find a problem that we've been
having, and I happen to be using IE6, along with a couple of different
browsers, and I ran across some really strange behavior with IE6.
In my testing, I was going to a test URL that was something like
http://myhost.foo.com:7777/foo, and was monitoring the HTTP traffic.
When I did this, the server logs, which show the various HTTP headers
in the request showed:
Host: myhost.foo.com
In other words, the port # (7777) was not included in the Host header.
I have a small program that acts as a kind of a proxy but dumps out the
HTTP traffic. I configured ..\etc\hosts file so that myhost.foo.com
would point to my proxy program, and when I pointed this same IE6
browser to http://myhost.foo.com:7777/foo, the proxy logs showed that
the request had:
Host: myhost.foo.com:7777
In other words, this time, the port # WAS included in the Host header.
Can someone explain why the Host header would include the
hostname
ort# in one case, but only hostname in the other?
Thanks,
Jim
I was doing some testing to try to find a problem that we've been
having, and I happen to be using IE6, along with a couple of different
browsers, and I ran across some really strange behavior with IE6.
In my testing, I was going to a test URL that was something like
http://myhost.foo.com:7777/foo, and was monitoring the HTTP traffic.
When I did this, the server logs, which show the various HTTP headers
in the request showed:
Host: myhost.foo.com
In other words, the port # (7777) was not included in the Host header.
I have a small program that acts as a kind of a proxy but dumps out the
HTTP traffic. I configured ..\etc\hosts file so that myhost.foo.com
would point to my proxy program, and when I pointed this same IE6
browser to http://myhost.foo.com:7777/foo, the proxy logs showed that
the request had:
Host: myhost.foo.com:7777
In other words, this time, the port # WAS included in the Host header.
Can someone explain why the Host header would include the
hostname
![Stick Out Tongue :p :p](/styles/default/custom/smilies/tongue.gif)
Thanks,
Jim