Penn State

Web Conference 2004

Writing Perl/CGI Scripts for ITS/ASET Web services

Speaking CGI

<- Back - More on HTTP| Up |More on CGI - Next ->

Speaking HTTP and CGI

When an HTTP request calls a CGI program, the program is started by the Web server process and data is passed back and forth between the Web server process (Apache) and the CGI. This is local to the Web server computer and is in addition to the HTTP dialogue.

Here is what the conversation between the browser, HTTP server program (Apache) and CGI program (passingdata.cgi) look like.

 

The first five lines of the reply back to the browser are the HTTP header, which indicate status of the request, and aspects of the requested page. The rest are the HTTP body which includes the Web page we see after we send the form.

<- Back - More on HTTP| Up |More on CGI - Next ->

If you have any questions, feel free to ask me - mailto:jcd@psu.edu

Content by: Jeff D'Angelo <jcd@psu.edu> © 2004

Last update on: Sunday, 13-Jun-2004 17:00:34 EDT