Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading stdin from http post in c#

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have writen a c# programm that executes a cgi script written in c# via a HTTP POST request. With the POST request, I also include some information, I want to use in the cgi script.

In a HTTP GET I can get this information by reading the Querystring variable.

How can I get this information when using a POST request? I think I should read the stdin somehow. Can anybody help me.

Thanks.

Ralph


 
Well I'm not sure about C# as I've not used it for CGI but at the CGI level in other languages you read various environment variables such as the REQUEST_METHOD which tells you if it's a Post or Query etc then you would read the stdin CONTENT_LENGTH bytes to get the request. You then have to move through the data decoding the various form fields.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top