L
Lamont Sanford
Hi,
I'm designing a client application that communicates with a server via HTTP.
The mechanism is fairly simple:
1) Create an XML-formatted string containing the data to send.
2) Send the data to the server via HTTP using a "POST" method.
3) Wait for the server to return XML-formatted data and then process that
data.
What class should I use to execute the HTTP request? I searched MSDN and
came across HttpWebRequest. It looks pretty straight-forward but I just want
to make sure I'm on the right track before I begin.
A couple of other requirements worth mentioning:
a) I need the request to take place in an asynchronous manner.
b) When the amount of data contained in the POST is large, I'd like to be
able to show the user a progress bar and a message stating something to the
effect of "500,000 of 600,000 bytes sent". Is there anyway to get hold of
that status/progress information while the request is in progress?
Thank YOU.
I'm designing a client application that communicates with a server via HTTP.
The mechanism is fairly simple:
1) Create an XML-formatted string containing the data to send.
2) Send the data to the server via HTTP using a "POST" method.
3) Wait for the server to return XML-formatted data and then process that
data.
What class should I use to execute the HTTP request? I searched MSDN and
came across HttpWebRequest. It looks pretty straight-forward but I just want
to make sure I'm on the right track before I begin.
A couple of other requirements worth mentioning:
a) I need the request to take place in an asynchronous manner.
b) When the amount of data contained in the POST is large, I'd like to be
able to show the user a progress bar and a message stating something to the
effect of "500,000 of 600,000 bytes sent". Is there anyway to get hold of
that status/progress information while the request is in progress?
Thank YOU.