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 ?
In reply to Re^5: How a web server sending data to a CGI perl script ?
by Anonymous Monk
in thread How a web server sending data to a CGI perl script ?
by exilepanda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |