Hi all,
I am curious that if I create an HttpWebRequest object and set the
Method of it to "HEAD", when I call GetResponse() do I get the whole
document sent from the responding server or do I just get the Headers
of the document I requested? Would this also mean, that I don't
actually download any of the body of the document until I call
GetResponseStream() on the HttpWebResponse object? I'm trying to limit
how much data I download, as I really only need to get the URI from the
HttpWebResponse object, not the entire page.
Thanks,
Mike
Kevin Spencer - 30 Mar 2006 17:47 GMT
Hi Mike,
The answer is that you will only get the head. See:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

Signature
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Show me your certification without works,
and I'll show my certification
*by* my works.
> Hi all,
>
[quoted text clipped - 9 lines]
> Thanks,
> Mike
MrMikeInNH@gmail.com - 30 Mar 2006 18:33 GMT
Thanks! I thought that's what the documentation was saying but just
wanted some reassurance on it.