Solved

Premature end of script headers

Posted on 1998-11-24
2
403 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
Comment Utility
Oh, and this isn't the path to these scripts either!
0
 

Accepted Solution

by:
juergenp earned 50 total points
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to see relevant event 12 55
jQuery Generalization 3 52
How can I do this in Pyhton? 12 66
importing users to Security group 2 30
The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

771 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

12 Experts available now in Live!

Get 1:1 Help Now