Login  
Search All Forums
Dart Home | PowerTCP Sockets for .NET | Custom Development Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
AuthorForum: PowerTCP Sockets for .NET (Secure and Standard)
Topic: Retrieving POST variable
aung
aung@aungkyawmoe.net

From: Bangkok, Thailand
Posts: 4
Member Since: 10/24/03
posted November 4, 2003 4:14 PM

I am customizing your TCP Socket WebServer sample and I am stuck with this one.
How can I retrieve only POST variable and data sent by the client browser from Web Server? Do I have to read the stream and do the string manipulation?

Is there any other ways of doing it simpler?

Aung
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted November 4, 2003 4:28 PM

Support for POST was not even considered when we wrote the sample. In order to support POST you would have to detect that the request was a POST, then instead of looking for a file to send back, you would get the data and decide what to do with it.
Assasin

From: Freeport, PA USA
Posts: 3
Member Since: 02/17/04
posted February 26, 2004 10:42 PM

like how could you read the post variable.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 27, 2004 8:53 AM

It would either be in the initial request (the first line) or at the beginning of the body of data that comprises the request.

If you need the sample modified to do this, please write to support@dart.com to find out what options are available to you.
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX