From: [EMAIL PROTECTED] wrote:
> Hello all. I am new to this mailing list so I am not sure if this message
>belongs here,
As will undoubtedly be pointed out more than once, there is a separate list
for cgi related stuff, so next time cgi related postings here:
[EMAIL PROTECTED]
>I uploaded my CGI scripts to my server flawlessly...., but when i run the
>script on the server it gives me an error:
>"Premature end of script headers:
>/data1/virtualave.net/triberunner/public_html/info.cgi"
The answer to this can be one of many various reasons depending on the kind
of server you're using, how the admin configured it and so on.
This can sometimes be caused by the script terminating before it outputs
the header, meaning a runtime error in the script:
are you using '-w', use 'strict'; ? these should highlight any errors not
necessarily related to syntax
Another consideration is that on most servers, due to security issues that
can arise from running CGIs, users usually have to put their cgis in a
specific directory. In other words you can't just upload your cgi to just
anywhere in your user account, and then call it from a web browser.
A simple way to check either of these is to telnet to your account and run
the cgi from the command line and see what you get in terms of a response.
You can get loads more pointers of where and what to look for from these links:
<<From POD FAQ Networking (FAQ9)
CGI FAQ
http://www.webthing.com/tutorials/cgifaq.html
Web FAQ
http://www.boutell.com/faq/
WWW Security FAQ
http://www.w3.org/Security/Faq/
HTTP Spec
http://www.w3.org/pub/WWW/Protocols/HTTP/
HTML Spec
http://www.w3.org/TR/REC-html40/
http://www.w3.org/pub/WWW/MarkUp/
CGI Spec
http://www.w3.org/CGI/
CGI Security FAQ
http://www.go2net.com/people/paulp/cgi-security/safe-cgi.txt
>From POD FAQ Networking>>
I'd highly recommend reading through all of these to make sure you're
familiar with cgis.
HTH
Robin
- [MacPerl] Problems with CGI Wireles316
- re: [MacPerl] Problems with CGI robinmcf
- re: [MacPerl] Problems with CGI John W Baxter