|
|||||||||
|
Output from the CGI scriptThe output from the CGI script is read by the server and usually passed on to the requesting client. The output is interpreted as a set of MIME-type HTTP headers, followed by a single blank line, followed by the data. The output may consist of just a single line containing:
Location: url which indicates that the request should be redirected to the specified URL. If the URL refers to a document served by the same server, the server will usually intercept the response and service it without notifying the client of the fact. If the browser receives a redirection, it may automatically send a new request to the server indicated, without notifying the user. Normally the output of a CGI script will contain at least a Content-type header, which indicates to the browser how the data is to be interpreted. The script may include other HTTP headers as discussed in Section , and further headers may be inserted by the server.
Spinning the Web by Andrew Ford |
||||||
Copyright © 1996-2002 Ford & Mason Ltd |