Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI Error

Status
Not open for further replies.

brad75

Programmer
Nov 28, 2001
8
US
Hi guys, I'm getting the following error when I hit the submit button on a form I created:

"The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:"

i've checked my path to the perl script and everything seems fine..actually, this form was working fine just a couple of days ago, and something weird happened and threw it off... any help will be very much appreciated..... Eliza Gyampoh
N/L Tech
 
You need to make sure the first lines your CGI script returns are:
[tt]
Content-type: text/html
<blank line>
[/tt]
Cheers, Neil
 
If Neil's tip does not fix it.....

a syntax error in your perl code will cause the same effect. Bad syntax -> code does not run -> no headers.

Try copying your code to your local machine and do
prompt>perl -c your_code.cgi <return>

That will show any syntax errors or return your prompt. Fix any errors and try again.

Also, if your code is making use of any system resources (like writing to a file), make sure it has sufficient permissions to do the trick.

HTH

If you are new to Tek-Tips, please use descriptive titles, check the FAQs,
and beware the evil typo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top