HTTP Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using the HttpWebRequest object to post a file to our server. Is there
any way that this can be done such that I can receive status messages back in
order to display a status bar for the transmission? Maybe there's a
different object I should be using???

Thanks
 
Todd said:
I'm using the HttpWebRequest object to post a file to our server. Is
there any way that this can be done such that I can receive status
messages back in order to display a status bar for the transmission?
Maybe there's a different object I should be using???

You can use the asynchronous methods

{Begin|End}GetRequestStream
{Begin|End}Write
{Begin|End}GetResponse
{Begin|End}Read

to execute the HTTP operations on a worker thread. You still need to come up
with a solution how to translate the asynchronous operation's progress to a
meaningful UI display.

Cheers,
 
Back
Top