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?
--
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.
----------------
[quoted text, click to view] "Joerg Jooss" <news-reply@joergjooss.de> wrote in message
news:xn0ea64b24250t4005@msnews.microsoft.com...
> barbutz wrote:
>
>> 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,
>
> --
>
http://www.joergjooss.de > mailto:news-reply@joergjooss.de