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

Re: Off-topic : CGI



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>"
echo "<body>"
echo Hi
echo "</body>"
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...")

Roman Shterenzon wrote:

> Hi!
> Does anyone know what could it be:
> [Wed Jun 10 18:37:31 1998] access to /users/Public/cgi-bin/file.cgi failed
> for "host" , reason: malformed header from script. Bad header=cannot open
> the DBM
>
> Webmasters?  anyone?
> It happends when I use system() from my cgi
>
> Running the SAME cgi with captured server environment (i.e. like in server
> environment) works fine.
>
> --Roman Shterenzon
> ========================================================================
> Running Windows on a Pentium is like having a brand new Porsche but only
> be able to drive backwards with the handbrake on.
> (Unknown source)
> ========================================================================



--
-------------------------
Aviram Jenik

"The Only Difference Between Me
And a Madman Is That I Am Not Mad"

G-Tek Technologies LTD.

-------------------------
Today's quote:
Opinions founded on prejudice are always sustained
with the greatest violence.
                         - Hebrew Proverb

S/MIME Cryptographic Signature