Re: CGI error
- From: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
- To: pgsql-general(at)postgresql(dot)org
- Cc: jklcom(at)mindspring(dot)com
- Subject: Re: CGI error
- Date: Thu, 22 Feb 2001 21:20:33 -0500
- Message-id: <20010222212033.A430@klamath.dyndns.org> <text/plain>
On Thu, Feb 22, 2001 at 07:52:54PM -0500, Jeff wrote:
> I'm getting this when access the cgi:
What HTTP daemon are you using?
> The specified CGI application misbehaved by not returning a complete set of
> HTTP headers. The headers it did return are:
Which headers did it return? You seem to have forgotten to paste something.
> printf("Content-Type: %s\n\n", contentType);
The HTTP standard specifies that lines should be ended by a CRLF pair -
i.e. "\r\n". Usually your HTTP daemon is smart enough to correct it (or
the browser does), but maybe that's the problem.
This doesn't seem related to Postgres. Try getting a simple CGI script
to work (i.e. printing "hello world") -- the same problem should occur,
AFAICT.
HTH,
Neil
--
Neil Conway <neilconway(at)home(dot)com>
Get my GnuPG key from: http://klamath.dyndns.org/mykey.asc
Encrypted mail welcomed
If one really is a superior person, the fact is likely to leak out
without too much assistance.
-- John Andrew Homes
Home |
Main Index |
Thread Index