NPH Scripts

Most Web servers allow CGI programs the option of providing all the headers that are sent to the browser, completely bypassing the Web server itself (under ordinary circumstances, CGI scripts only provide the content type header). When the Web server calls a script in NPH (non-parsed header) mode, the script is responsible for generating all the headers that are sent to the browser.

Various Web servers identify NPH scripts in different ways. Most recognize any script with a name beginning with nph- as an NPH script. If they see a script with such a name, they treat it as an NPH script and send the output straight back to the browser. Your Web server might identify NPH scripts differently, you should check your Web server documentation ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.