Solved

Premature end of script headers

Posted on 1998-11-24
2
414 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change home folder path 4 56
Need help to rewrite script 3 96
Need sample Angular apps for study 4 102
this script icacle doesn't work on remote computers. please help 11 80
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

821 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