[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache cgi-bin for users

On Thu, Jan 03, 2002 at 04:36:19PM -0500, Keith Elder wrote:
> http://yourdomain.com/~username/cgi-bin/test.cgi
> When this page is run, I get "premature end of headers" in the
> error.log file.  I thought this would be fairly simple but it
> is turning out to be a headache.

Just a thought, but what does your test.cgi look like?

You could try the following script:

------------------ 8< ------------------

echo -en "Content-type: text/plain\r\n"
echo -en "\r\n"

echo -en "Hello World!\r\n"
------------------ 8< ------------------

That error implies that you don't have a blank line after your
HTTP headers or something.

Michael Wood <mwood@its.uct.ac.za>

Reply to: