in reply to Yet Another Premature End of Script Headers Question
I believe you need cariage return/new line combinations after the headers. Try:
#!/usr/bin/perl -w print "Content-type: text/html\r\n\r\n"; print "<HTML><HEAD>"; print "<TITLE>CGI Test</TITLE>"; print "</HEAD>"; print "<BODY><H2>Hello, world.</H2>"; print "</BODY></HTML>";
Also, might I recomend "use CGI"
They say that time changes things, but you actually have to change them yourself.
Andy Warhol
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Yet Another Premature End of Script Headers Question
by brian_d_foy (Abbot) on Jul 19, 2005 at 21:23 UTC | |
|
Re^2: Yet Another Premature End of Script Headers Question
by Anonymous Monk on Jul 19, 2005 at 17:14 UTC |