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 / January 2005

Tip: Looking for answers? Try searching our database.

HttpWebRequest.GetResponse()

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Oemer Yildiz - 27 Jan 2005 18:00 GMT
Hi,

how does GetResponse() act (request-method is GET!), when the
Content-Length of the HTTP-Response is -1, i.e. unlimited? Using a
Packet-Sniffer i found out, that it returns after having received the
HTTP-header and a few packets from the data-stream. However, i'd like
to know the method's "documented" behaviour which i could not find on
its documentation page.

Thanks in advance!
Nicole Schenk - 28 Jan 2005 03:37 GMT
> Hi,
>
[quoted text clipped - 6 lines]
>
> Thanks in advance!
I would look into http://www.w3c.org, they may have the http standard.
Joerg Jooss - 29 Jan 2005 08:30 GMT
> Hi,
>
> how does GetResponse() act (request-method is GET!), when the
> Content-Length of the HTTP-Response is -1, i.e. unlimited?

-1 does not mean unlimited -- there's no such thing as an unlimited
response size. It means "undefined". You may see this value for a
number of reasons, such as

-- The response has no body (like any request for a HEAD request)
-- The response was sent using Transfer-Encoding: chunked
-- The response included a Connection: close header

> Using a
> Packet-Sniffer i found out, that it returns after having received the
> HTTP-header and a few packets from the data-stream. However, i'd like
> to know the method's "documented" behaviour which i could not find on
> its documentation page.

It will do just what needs to be done according to the HTTP 1.1
protocol. Do you have a specific problem?

Cheers,
Signature

http://www.joergjooss.de
mailto:news-reply@joergjooss.de


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.