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 ?
I read the RFC recommended,I know what I should prepare (and I already knew) for my script, but the question is how to send it to the script.
client makes a request through socket , your server reads headers, then
Populate a local %ENV
dispatches/calls/invokes a process ,
through pipe, fork, whatever, see perlipc, Capture::Tiny
put http request BODY on STDIN
Collect output from STDOUT
log errors from STDERR
After timeout, or whatever, return/generate/forward a return HTTP request back on socket to the client
I already linked examples in Re: How a web server sending data to a CGI perl script ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How a web server sending data to a CGI perl script ?
by exilepanda (Friar) on Jan 22, 2016 at 03:47 UTC | |
by Anonymous Monk on Jan 22, 2016 at 07:38 UTC | |
by exilepanda (Friar) on Jan 22, 2016 at 08:02 UTC |