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().