Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

cgi problem
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



Report this thread to moderator Post Follow-up to this message
Old Post
Jim
03-19-04 06:25 PM


Re: cgi problem
In 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

Report this thread to moderator Post Follow-up to this message
Old Post
Vorxion
03-19-04 06:25 PM


Re: cgi problem
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.

-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



Report this thread to moderator Post Follow-up to this message
Old Post
Charles E. Pelkey
03-19-04 06:25 PM


Re: cgi problem
In 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

Report this thread to moderator Post Follow-up to this message
Old Post
Vorxion
03-19-04 06:25 PM


Re: cgi problem
Sorry, 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



Report this thread to moderator Post Follow-up to this message
Old Post
Charles E. Pelkey
03-19-04 06:25 PM


Re: cgi problem
Hi:

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
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Al
03-19-04 06:25 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL CGI Freelance archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:51 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.