You said PSGI is similar to CGI. How is the PSGI interaface different from CGI?
The PSGI interface is intentionally designed to be very similar to CGI so that supporting PSGI in addition to CGI would be extremely easy. Here’s a highlight of the key differences between CGI and PSGI: • In CGI, servers are the actual web servers written in any languages but mostly in C, and script is a script that can be written in any language such as C, Perl, Shell scripts, Ruby or Python. In PSGI, servers are still web servers, but they’re perl processes that are usually embedded in the web server (like mod_perl) or a perl daemon process called by a web server (like FastCGI), or an entirely perl based web server. • In CGI, we use STDIN, STDERR, and environment variables to read parameters and the HTTP request body and to send errors from the application. In PSGI, we use the $env hash references and the psgi.input and psgi.errors streams to pass that data between servers and applications. • In CGI, applications are supposed to print HTTP headers and body to STDOUT to pass it back t
Related Questions
- The original soundtrack for the video version of When All Is Said And Done is different than the one released on record. Could it be possible that the video mix was an earlier version?
- Ive heard the term trance or trance state. Is this similar to hypnosis or is it something different?
- What makes the PICO-2000 different from other similar products in the market?