Question on implementing scripts and programs thru WWW????
David G. Risner
dgrisner at netcom.com
Wed Dec 27 00:06:05 EST 1995
On Tue, 26 Dec 1995, John Lee wrote:
> I am trying to implement my first C program thru the NSCA WEB server.
> The program compiles fine and I can run it at a unix promp and it works
> fine but when I try to access it thru the my browser netscape 1.2 I get a
> window that comes up and so "Document contains no Data". All the C
> program is doing is building a html docuement and including a counter.
> I have run some simple scripts out of the cgi-bin directory So I know it
> sees the directory
You should make sure that the very first thing you send to stdout is the
line:
Content-Type: text/html
This is the Mime header for an html file. It tells the server what you
are serving up.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
David G. Risner dgrisner at netcom.com
Southwestern University School of Law Library Los Angeles, CA
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
More information about the Web4lib
mailing list