473,398 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Responding to a HttpWebRequest

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
Dec 2 '05 #1
3 1519
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 Mistry" <uk***********@gmail.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
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

Dec 2 '05 #2
>
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)?


Response.StatusCode
http://msdn.microsoft.com/library/de...sCodeTopic.asp

--
Scott
http://www.OdeToCode.com/blogs/scott/

Dec 2 '05 #3
Tarun Mistry wrote:
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,
--
http://www.joergjooss.de
mailto:ne********@joergjooss.de
Dec 3 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Dan Battagin | last post by:
Is there a known bug with the interaction between the HttpWebRequest and the ThreadPool? I current spawn several HttpWebRequest's using BeginGetResponse, and they work for a while, using worker...
10
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is...
9
by: Mike Cronin via DotNetMonster.com | last post by:
Hi there, Can anyone tell me what level of encryption is used when making an HTTPS POST request through an instance of the System.Net.HttpWebRequest object? Thanks much in advance! Mike...
16
by: thomas peter | last post by:
I am building a precache engine... one that request over 100 pages on an remote server to cache them remotely... can i use the HttpWebRequest and WebResponse classes for this? or must i use the...
1
by: sfoxover | last post by:
Hi, Could someone please give me some suggestions on how to make this class robust. I need to be able to handle around 20 similtanious requests to this class which causes a web browser to...
6
by: Mike Koerner | last post by:
Hi, I am having problems setting the HttpWebRequest Date header. I understand that it is a restricted header and I do receive the "This header must be modified with the appropriate property." ...
16
by: Cheung, Jeffrey Jing-Yen | last post by:
I have a windows form application that generates a request, downloads an image, and waits the user to enter in login info. Unfortunately, this image is dynamic and based on session data. I have...
3
by: JansenH | last post by:
We have implemented a 'HTTP Post' client in C# that posts Xml documents to a webserver. This is working fine if the post rate is one post for every 20 seconds. But if the post rate is increased to...
1
by: Proogeren | last post by:
I have a problem with a httpwebrequest that I am creating. The request in itself looks correct but using fiddler I see that a www-authentication header is sent along as well. The code is pasted...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.