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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

STDIN in cgi script

Status
Not open for further replies.

manishrathi

Programmer
Feb 26, 2009
6
US
When a web server receives an HTTP request directed to CGI script, it reads the headers and passes the content body of message to CGI script on STDIN."

To pass a parameter from cmd line, we use <stdin>. In the cgi script, I did not use <stdin> anywhere in the script, so how will parameter be passed ? At what point does <stdin> come in picture in the cgi script ? Is it in the beginning ? Can you pls explain this with example ?
 
You already touched on that in your other post. You send data to a CGI script using GET or POST (or other) method. The CGI script has to know how to parse the data sent to it. Perl comes with the CGI module for this purpose.

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top