Code Comments
Programming Forum and web based access to our favorite programming groups.I am using a cgi script on a new server and getting this message Server error! The server encountered an internal error and was unable to complete your request. Error message: Premature end of script headers: contact.cgi If you think this is a server error, please contact the webmaster Can anyone tell me whats wrong with this. Thanks
Post Follow-up to this messageIn article <bnjnkj$pv$1@newsg2.svr.pol.co.uk>, Jim wrote: >I am using a cgi script on a new server and getting this message > >Server error! >The server encountered an internal error and was unable to complete your >request. >Error message: >Premature end of script headers: contact.cgi >If you think this is a server error, please contact the webmaster > >Can anyone tell me whats wrong with this. It's broken. :) Dollars to donuts your script is generating output before it generates the actual HTTP headers. And I'd bet that the error_log for the server says exactly what it's generating, as well. Short of telling you that, you don't give enough information to go into further detail. If you'd like further assistance, please contact me via email. My rate is $75/hr, 1hr mininum. -- Vorxion - Member of The Vortexa Elite
Post Follow-up to this messageVorxion, If you have shell access to the server, try running syntax checking on the script (perl -c scriptname.pl) if you are comfortable doing so. -Charles "Vorxion" <vorxion@fairlite.com> wrote in message news:3f9d87de$1_1@news.iglou.com... > In article <bnjnkj$pv$1@newsg2.svr.pol.co.uk>, Jim wrote: > > It's broken. :) > > Dollars to donuts your script is generating output before it generates the > actual HTTP headers. And I'd bet that the error_log for the server says > exactly what it's generating, as well. > > Short of telling you that, you don't give enough information to go into > further detail. If you'd like further assistance, please contact me via > email. My rate is $75/hr, 1hr mininum. > > -- > Vorxion - Member of The Vortexa Elite
Post Follow-up to this messageIn article <vpr3av9urnh3aa@corp.supernews.com>, Charles E. Pelkey wrote: >Vorxion, > >If you have shell access to the server, try running syntax checking on the >script (perl -c scriptname.pl) if you are comfortable doing so. Erm...I'm not the one with the problem. I was answering. :) However, Jim should take note of your response. -- Vorxion - Member of The Vortexa Elite
Post Follow-up to this messageSorry, read the message content wrong... did not see > In article <bnjnkj$pv$1@newsg2.svr.pol.co.uk>, Jim wrote: -Charles "Vorxion" <vorxion@fairlite.com> wrote in message news:3f9d95e4_1@news.iglou.com... > In article <vpr3av9urnh3aa@corp.supernews.com>, Charles E. Pelkey wrote: the > > Erm...I'm not the one with the problem. I was answering. :) > > However, Jim should take note of your response. > > -- > Vorxion - Member of The Vortexa Elite
Post Follow-up to this messageHi: Run the script on the computer you do the programming on (I assume you have Perl loaded there). Perl will tell you if you have errors in the code. If no errors then you did something like trying to display some text on a HTML page before you did a setup of the HTML page. www.web-site-builder.com Al "Jim" <jim@photism.fsnet.co.uk> wrote in message news:bnjnkj$pv$1@newsg2.svr.pol.co.uk... > I am using a cgi script on a new server and getting this message > > Server error! > The server encountered an internal error and was unable to complete your > request. > Error message: > Premature end of script headers: contact.cgi > If you think this is a server error, please contact the webmaster > > Can anyone tell me whats wrong with this. > > Thanks > >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.