× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello,

I see you've already resolved this... but, I thought it might be interesting if I gave an explanation for what the message means.

On 1/25/2012 6:53 PM, Pete Helgren wrote:
I am getting a "ZSRV_MSG0107: Premature end of script headers: File name
is ..." message when I attempt to run a new web app.

A program run via the CGI interface is referred to as a "CGI Script". That's what it means by "script" in this message ... your program is the "script"

A CGI script always outputs headers followed by data to the HTTP server that called it. Headers are lines of text, delimited by CRLF. A blank line (CRLF by itself) denotes the end of the headers.

Anything/everything after the headers is considered the data, or the "response body".

"Premature end" would imply that it never got the blank line that denotes the end of the headers.

So, "premature end of script headers" means that the HTTP server called your program, and your program returned control, but never sent a blank line denoting the end of the script headers.

This typically means one of the following:

1) You forgot the headers altogther
2) You forgot the blank line denoting the end
3) You sent back nothing at all.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.