RE: [INTERFACES] Web, PostgreSQL, C

From: Greg Youngblood <YoungblG(at)houstoncellular(dot)com>
To: "'Margarita Barvinok'" <brita(at)umich(dot)edu>, pgsql-interfaces(at)postgreSQL(dot)org
Subject: RE: [INTERFACES] Web, PostgreSQL, C
Date: 1999-08-10 19:15:36
Message-ID: 2B9713A99045D211BB4E0008C7566869DC9D2A@SCORPEXC1.houstoncell.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Check your output. The very very first thing your code should spit out is:

Content-Type: text/html\n\n

where \n is the newline character.

Your error message tells me the server didn't get a content-type header line
so it isn't sending your date to the browser.

If your code isn't doing this, then this is likely your problem. Hopefully
that is all it is.

Gregory S. Youngblood
ext 2164

-----Original Message-----
From: Margarita Barvinok [mailto:brita(at)umich(dot)edu]
Sent: Tuesday, August 10, 1999 12:12 PM
To: pgsql-interfaces(at)postgreSQL(dot)org
Subject: [INTERFACES] Web, PostgreSQL, C

Hi All,

Sorry for stupid questions but all this stuff is new for me.
I am working on a CGI program to access Postgres DB from the Web.
I would like to use C for CGI.
I took standard post-query.c program that transfer data from Web to the
program.
Then I add some Postgres staff and compile the program with Postgres
libraries. And the program doesn't work. It dives this error:

Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.

Browse pgsql-interfaces by date

  From Date Subject
Next Message Hub.Org News Admin 1999-08-10 21:10:54
Previous Message Margarita Barvinok 1999-08-10 17:12:21 Web, PostgreSQL, C