Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

FAQ: Frequently Asked Questions about CGI Programming
Section - 4.4 I tried to use (Content-Type|Location|whatever), but it appears in my Browser?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Neighborhoods ]


Top Document: FAQ: Frequently Asked Questions about CGI Programming
Previous Document: 4.3 Why do I get Error 500 ("the script misbehaved", or "Internal Server Error")
Next Document: 4.5 How can I run my CGI program 'live' in a debugger?
See reader questions & answers on this topic! - Help others by sharing your knowledge

That means you put the line in the wrong place.  It must appear in the
CGI Header, not the document body.  See previous question.

It's also possible that you didn't print a header at all, or had a blank
line or other noise before or in the header, but that the HTTPD has
corrected this error for you (servers which correct your errors may give
rise to the "works on A not on B" phenomenon).   See previous question.


User Contributions:

Comment about this article, ask questions, or add new information about this topic: