HttpWebRequest.GetResponse()

M

MrMikeInNH

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
 
M

MrMikeInNH

Thanks! I thought that's what the documentation was saying but just
wanted some reassurance on it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top