#!/usr/bin/perl use strict; use warnings; print "Content-type: text/html\n\n"; print '<html><head></head><body>'."\n"; print 'Some content here'."\n"; print '</body></html>'."\n";
I just can't understand what exactly is wrong with this script. Browser receives message 'Internal server error' and apache error log has line 'Premature end of script headers'.
I understand that this error could be logical if I had missed following line:
print "Content-type: text/html\n\n";
So I'm really confused.
In reply to Premature end of script headers by zitic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |