On 10/10/05, Ice Shock <[EMAIL PROTECTED]> wrote:
>
> in the code below I am trying to get the response from a GET request to a
> normal URL (or URI) but what happens is that I can only get a part of it
> unless I make the current thread sleep for a certain while (in the
> commented
> part). It seems that the Synchronous method is not synchronous since it
> returned before the response is ready!!??
>
>
Use the ContentLength property of the Response object to determine how much
data to read. It's perfectly legal to get the headers of the response before
the body, or even to get the response in chunks. There's no rule that
specifies that the entire response is transmitted in one go.

So create a byte[] of ContentLength length and read that much data.

--
Steve Johnson

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to