?
Solved

Premature end of script headers

Posted on 1998-11-24
2
Medium Priority
?
425 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 100 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

DFW AZURE MEETUP TONIGHT FRI 6PM

We will be discussing what Azure Stack is, how does it fit into the suit of offerings that Azure has currently, and where can it fit into your organizations technology stack. We will also be discussing limitations of the platform while covering various applicable scenarios.

Question has a verified solution.

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

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

777 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