Responding to a HttpWebRequest

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
 
K

Kevin Spencer

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
 
J

Joerg Jooss

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,
 

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

Top