Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

HttpWebRequest.GetResponse()

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MrMikeInNH@gmail.com - 30 Mar 2006 15:38 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.