Page 253 -
P. 253

web development





                                                               Here you go...a web
                Step 4: The web server                       response generated just for
                  processes the web                          you. Enjoy!
                request, creating a web
                response, which is sent
                 back over the Internet
                  to the waiting web                                        response.
                                                                            Here comes a web
                       browser.
                                           Web
                                          Server







                                                                        The Internet



          The (potentially) many substeps of step 4

           In practice, step 4 can involve multiple substeps, depending
           on what the web server has to do to produce the response.
           Obviously, if all the server has to do is locate static content
           and sent it back to the browser, the substeps aren’t too
           taxing, because it’s all just file I/O.                            That’s exactly what I
                                                                               need. Thanks!
           However, when dynamic content must be generated, the sub-
           steps involve the web server locating the program to execute,
           executing the located program, and then capturing the output
           from the program as the web response…which is then sent
           back to the waiting web browser.
           This dynamic content generation process has been
           standardized since the early days of the Web and is known
           as the Common Gateway Interface (CGI). Programs
           that conform to the standard are often referred to as CGI
           scripts.
                                                                 Step 5: The web
                                                               browser receives the
                                                                web response and
                                                                displays it on your
                                                                  user’s screen.






                                                                                      you are here 4    217
   248   249   250   251   252   253   254   255   256   257   258