Re: [EMAIL PROTECTED] Error when issuing a 302 from a CGI

2006-07-31 Thread Jose Adriano Baltieri
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 browse

Re: [EMAIL PROTECTED] Error when issuing a 302 from a CGI

2006-07-28 Thread Nick Kew
On Friday 28 July 2006 21:34, Joshua Slive wrote: > > 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). Whilst feasible, that's fragile and requir

Re: [EMAIL PROTECTED] Error when issuing a 302 from a CGI

2006-07-28 Thread Joshua Slive
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 "In

Re: [EMAIL PROTECTED] Error when issuing a 302 from a CGI

2006-07-28 Thread Jerry McAllister
> > I have a tiny CGI program written in C that's like this : > > # include > main() > { > printf("HTTP/1.1 302 Found\n"); > printf("Location: http://www.unimep.br\n\n";); > } > > Running it at the prompt, it will print of course : > > HTTP/1.1 302 Found > Location: http://www.unimep.b

Re: [EMAIL PROTECTED] Error when issuing a 302 from a CGI

2006-07-28 Thread Eike Frost
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 np

[EMAIL PROTECTED] Error when issuing a 302 from a CGI

2006-07-28 Thread Jose Adriano Baltieri
I have a tiny CGI program written in C that's like this : # include main() { printf("HTTP/1.1 302 Found\n"); printf("Location: http://www.unimep.br\n\n";); } Running it at the prompt, it will print of course : HTTP/1.1 302 Found Location: http://www.unimep.br However, when I run it fro