HttpWebRequest

  • Thread starter Thread starter Drew
  • Start date Start date
D

Drew

When I use the GetResponse method of HttpWebRequest
is this considered non-blocking I/O?

It seems like it is to me, but I'm not sure.

If it is non-blocking, is there a way to specify that I want it
to block until some data is received or a timeout occurs?

Thanks,

Drew
 
Actually, GetResponse is a blocking method.

If you want non-blocking (aka asynchronous), look at BeginGetResponse
and EndGetResponse methods of HttpWebRequest.
 
Asynchronous calls aren't supported in the CF as far as I
recall...
-----Original Message-----
Actually, GetResponse is a blocking method.

If you want non-blocking (aka asynchronous), look at BeginGetResponse
and EndGetResponse methods of HttpWebRequest.
 
Back
Top