Responding to a HttpWebRequest

  • Thread starter Thread starter Tarun Mistry
  • Start date Start date
T

Tarun Mistry

Hi, I have an ASP.NET application (client) thats uses HttpWebRequest to post
data to another ASP.NET page (server) and then uses the HttpWebResponse
class to get the results of the request.

However, on the server side, what classes do I need to use to get the
incoming post data and then return a response code (i.e. http 202)?

I currently take the Request object and get the details from it, however how
do I then return something or a status code to the user?

Thanks.
Taz
 
How abot using System.Web.UI.Page? It can do all of those things.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition
 
Tarun said:
Hi, I have an ASP.NET application (client) thats uses HttpWebRequest
to post data to another ASP.NET page (server) and then uses the
HttpWebResponse class to get the results of the request.

However, on the server side, what classes do I need to use to get the
incoming post data and then return a response code (i.e. http 202)?

I currently take the Request object and get the details from it,
however how do I then return something or a status code to the user?

Use whatever ASP.NET component you would normally use to implement the
desired functioanlity (a Page, a HttpHandler, ...). It's just another
web applicaton client.

Cheers,
 
Back
Top