Not for web server but for proxy server. I have a proxy server that acts
differently when it gets Host header and when it doesn't. I need to test it
both ways of course so right now i can only do one way. Is there anything i
can do? if not than i guess i won't continue to use HttpWebRequest class.
> Not for web server but for proxy server. I have a proxy server that
> acts differently when it gets Host header and when it doesn't. I need
> to test it both ways of course so right now i can only do one way. Is
> there anything i can do? if not than i guess i won't continue to use
> HttpWebRequest class.
I'm afraid not. It's one of the more annoying limitations of
HttpWebRequest :-(
OTOH, that proxy shouldn't choke on a Host header either...
Cheers,

Signature
http://www.joergjooss.de
mailto:news-reply@joergjooss.de
Feroze [msft] - 20 Dec 2005 01:21 GMT
You can craft your own HTTP request and send it using a Socket client...
GET /default.htm HTTP/1.0\r\n
Host: <host hdr value>\r\n
\r\n
\r\n
And you can repeat that request without the Host header line. And see what
the difference is in the proxy's response.
what proxy is this, btw?

Signature
feroze
-----------------
This posting is provided as-is. It offers no warranties and assigns no
rights.
See http://blogs.msdn.com/feroze_daud for System.Net related posts.
----------------
>> Not for web server but for proxy server. I have a proxy server that
>> acts differently when it gets Host header and when it doesn't. I need
[quoted text clipped - 8 lines]
>
> Cheers,