>
> I have a tiny CGI program written in C that's like this :
>
> # include <stdio.h>
> 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 from the browser I'll receive an "Internal Server
> Error".
>
> Error.log tells me this :
>
> malformed header from script. Bad header=HTTP/1.1 302 Found: TEST080.exe
>
> What's wrong ?
I may be wrong, but I think your double \n\n needs to come in the
first line with the 'HTTP'
////jerry
>
> --
> 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]