Joshua Slive wrote:
On 7/28/06, Eike Frost <[EMAIL PROTECTED]> wrote:
Hi,

On Friday 28 July 2006 21:42, Jose Adriano Baltieri wrote:
> I have a tiny CGI program written in C that's like this :
(...)
> HTTP/1.1 302 Found
> Location: http://www.unimep.br
>
> However, when I run it from the browser I'll receive an "Internal Server
> Error".

Rename the CGI script to nph-something -- this will tell mod_cgi to treat the
script as one with non-parseable headers (and subsequently leaves the
response code alone to do with as you wish).

This advice will probably work, but the better advice is to replace
the first line with
Status: 302 Found
CGI scripts don't emit the status line, but they can tell the server
to send a particular status using the Status header.  See the CGI
spec.
Hi Joshua !

Your suggestion DOES fixes it. I applied it and now it's working OK !

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Obrigado,
------------------------------------------------------------------------------
               Jose Adriano Baltieri - Analista de Sistemas
               DTI - CENTRO - UNIMEP - Universidade Metodista de Piracicaba
               PIRACICABA - SP - Brasil - Fone : (19) 3124-1858
------------------------------------------------------------------------------


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to