When I run the script in the browser, I get appache logs that look like:
203.123.69.211 - - [12/Dec/2003:22:22:34 +1100] "GET /cgi-bin/test.cgi HTTP/1.0"
500 609 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; Alexa Toolbar)"
AND
[Fri Dec 12 22:22:34 2003] [error] [client 203.123.69.211] Premature end of script headers: /home/virtual/site186/fst/var/www/cgi-bin/test.cgi
Am I missing something really simple here
My script is dirt simple----
print "200 OK\n";
# Print an HTML response to the user
print "content-type: text/html\n\n";
print "<html>\n";
print "<HEAD>\n";
print "<TITLE>hello, world html </TITLE>\n";
print "<H2>Hello, World, in HTML </H2>\n";
print "</HEAD>\n";
print "<body>\n";
print "<h3>Your data has been sent.</h3>\n";
print "</body>\n";
print "</html>\n";
print "content-type: text/html\n\n";
duh! .... ehmm ....
ok ... I will punish my self ... "learn to read, learn to read, .... "
have you the right perl path?
#!/usr/bin/perl
does your script generate an error, print to stdout and all that before the content-type header?
Try with the content-type header at the very beginning.. :-)