in reply to (Ovid) Re: Apache+cgi problem
in thread Apache+cgi problem
I just would like to point out that while "Content-type: text/html\n\n" works often, if you are gonna do that instead of useing CGI, you should really end the lines with double "\015\012" instead, like this:print "Content-type: text/html\015\012\015\012";.
This is more cross-platform, and would work on most machines, except (I think ) VMS and non-ASCII machines. "\015\012" is the defined CRLF sequence for HTTP-headers.
In reality though, I think that it is just as good to get into the habit of useing the CGI module right away. Just like you say. It takes care of all such concerns. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re(3): Apache+cgi problem
by Ovid (Cardinal) on Feb 16, 2002 at 17:10 UTC | |
by gellyfish (Monsignor) on Feb 16, 2002 at 18:36 UTC |