[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Off-topic : CGI
Aviram Jenik (aviram@gtek.co.il) wrote:
>malformed header means your script printed something, but it wasn't the http
>header required.
>Look at some CGI FAQs for the necessary header.
>
>Look at this script for example:
>#!/bin/sh
>echo Content-type: text/html
>echo
>echo
>echo "<html>"
...
>note the line "echo Content-type: text/html" your server didn't get this line
>from some reason.
>A possible reason is, the script wasn't executed. (so the OS prints a "bad
>command" string instead of the expected "content-type...")
Or there weren't the correct number of line-breaks after the line. It
should be, IIRC:
print "Content-type: text/html\n\n"
print "<HTML>..."
-------------------------------------------------------------------
Itamar S.-T. itamars@ibm.net