Reading POST/GET variables

J

Juan Emilio

Hi, I writing a CGI in C++ (just testitg I know that it´s more easy in
Perl or PHP) and I would like to know how can I read POST/READ
varibles sent from a From, o from an URL.

Thanks
 
K

Ken Human

Juan said:
Hi, I writing a CGI in C++ (just testitg I know that it´s more easy in
Perl or PHP) and I would like to know how can I read POST/READ
varibles sent from a From, o from an URL.

Thanks

Look up char * getenv(const char*) in cstdlib.
 
D

Default User

Juan said:
Hi, I writing a CGI in C++ (just testitg I know that it´s more easy in
Perl or PHP) and I would like to know how can I read POST/READ
varibles sent from a From, o from an URL.

Do you know the basics of CGI? POST data is read from standard input,
while GET data is contained in a specific evironment variable. This can
be handled by standard C++, but the specifics of how to parse this data
is not topical here.

There are a number of prefab C and C++ libraries for CGI use. Or you
can roll your own.



Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,293
Messages
2,571,500
Members
48,188
Latest member
GerardRush

Latest Threads

Top