• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 35. CGI and Pre-Processing Funda... > Understanding How the CGI Works

Understanding How the CGI Works

As you begin to develop CGI applications, you will soon realize that to integrate an application into your Web site two things must happen. First, your application must be able to receive data from the Web browser and Web server. This is imperative to properly perform most functions. In addition, your application must be able to send results back to the user's Web browser after it has finished executing.

CGI defines how to do both of these actions. As for receiving data from the Web browser and Web server, your CGI application does not have to do anything to ensure that this data is made available. The Web server will automatically send this information to your CGI application when it gets started. As for sending data back to the Web browser, that is equally easy. All you must do is create a valid header as defined in the CGI specification and output the results.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint