Web Page response via POST

nooch32

Member
Joined
Oct 25, 2006
Messages
17
Programming Experience
3-5
Not sure if this is in the right forum, or if it belongs in the remoting forum, sorry if this is the wrong one.

I have an application that i want to send a http post request to a web page, is it possible to get the response from this web page and put it into a variable?

the web page returns a number based on the URI passed to it. No HTML, just plain text number.

Any ideas or pointers?
 
Simplified is to use System.Net.WebClient class, the Upload methods makes POST commands to http resources and the response is returned, see for example documentation for WebClient.UploadString method. The WebClient is basically a wrapper for the most common tasks of webrequests.
 
ah the WebClient method seems a lot more simplier than using WebRequest/Response and a stream and a streamreader
 
Back
Top