Solved

Premature end of script headers

Posted on 1998-11-24
2
417 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

742 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