For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Freelance > March 2004 > cgi problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cgi problem
Jim

2004-03-19, 1:25 pm

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


Vorxion

2004-03-19, 1:25 pm

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
Charles E. Pelkey

2004-03-19, 1:25 pm

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



Vorxion

2004-03-19, 1:25 pm

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
Charles E. Pelkey

2004-03-19, 1:25 pm

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[color=darkred]
>
> 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



Al

2004-03-19, 1:25 pm

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



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com