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.
 

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

Back
Top