Solved

Premature end of script headers

Posted on 1998-11-24
2
407 Views
Last Modified: 2013-12-25
I'm trying to get a pair of CGI scripts to run, and they give this server error: Premature end of script headers: /usr/www/users/mysite/cgi-bin/rate.cgi

Can this info help anyone solve my problem or point me in a direction to troubleshoot?
0
Comment
Question by:s_lansing
2 Comments
 

Author Comment

by:s_lansing
ID: 1829777
Oh, and this isn't the path to these scripts either!
0
 

Accepted Solution

by:
juergenp earned 50 total points
ID: 1829778
ANY Script will have to print a file header, in the general form of:
content-type: text/html

notice the second line, which is empty!
your browser will know that your header has ended when it encounters an empty line (2 consecutive LF's)
other content informations are to be written in lines following the content-type.
For more information (such as other content types), check out the official CGI Primerpage at
http://hoohoo.ncsa.uiuc.edu/
hope this helps,
jp

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Update a File not in all folders 2 43
Adapting Windows 7 Image for all HDD size 7 82
AWS CLI issues with Tags 3 66
Renaming multiple file extensions using Powershell 4 39
In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now