CGI and C/C++
Posted on 1997-04-20
I´m having trouble in "receiving" a form transmitted via POST method. My
program goes something like this:
if (getenv("REQUEST_METHOD")=="GET") query_string=getenv("QUERY_STRING");
I am using Visual C++ and Personal Web Server.
As POSTed forms are sent through stdin, I thought this should do the trick,
but it doesn´t. As I submit the form, my exe runs and hangs up my computer!
I think it is expecting data from stdin, but it should already be there!
I have no trouble with GET method, but sometimes I need to use POST.
Can anyone help me?
Thanks in advance