in reply to CGI http header error

Hi,

The script excerpt you've provided there isn't actually outputting anything to the browser (you're printing everything to the OUT filehandle) - which is why you'll get the incomplete header message.

You can fix this by outputting the same data to STDOUT, as well as to the file (anything written to STDOUT is directed automatically to the browser when the script is run).

As far as the HTML file goes, that looks about right for a full set of headers and your "Hello, world". You can always add in some newlines when you're outputting to the file (eg print OUT $q->header, "\n";) to space the code out a little.

Hope that helps.

-- Foxcub
#include www.liquidfusion.org.uk