Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: How a web server sending data to a CGI perl script ?

by Corion (Patriarch)
on Jan 21, 2016 at 09:51 UTC ( [id://1153260]=note: print w/replies, xml ) Need Help??


in reply to Re^4: How a web server sending data to a CGI perl script ?
in thread How a web server sending data to a CGI perl script ?

As you've read the RFC, maybe you can tell us what parts of chapter 3, Invoking the Script you've already implemented, and where your server still fails.

Update: Chapter 4.1, Request Meta-Variables tells me:

Meta-variables contain data about the request passed from the server to the script, and are accessed by the script in a system-defined manner.

The traditional system-defined manner is using the environment (%ENV) to pass these values. See also chapter 7, which discusses the different operating systems and their system-defined ways of communicating the variables to the child process.

Replies are listed 'Best First'.
Re^6: How a web server sending data to a CGI perl script ?
by exilepanda (Friar) on Jan 21, 2016 at 10:06 UTC
    In fact, I think that's nothing to do with RFC. A CGI script can be in Perl, Python, PHP, or whatever, it's the spec only, which is a "WHAT" but I am asking "HOW".

    Consider I have already prepare everything (is needed for me at this moment, actually), but as said in my OP, the limitation is I have to do all the rest within my server's code. My server can communicate with the browser by all means.

    I don't know "the how" is how to pass the parameters that I've prepared to my target CGI script, so when my CGI script got triggered, it's just naturally have all the %ENV variables ready or a opened STDIN is ready for read().

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1153260]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-04-19 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found