[Migrated content. Thread originally posted on 05 March 2012]
Program:
000010 IDENTIFICATION DIVISION.
000020 PROGRAM-ID. TESTE1.
000030
000040 ENVIRONMENT DIVISION.
000050
000060 DATA DIVISION.
000070
000080 PROCEDURE DIVISION.
000090 PARA-1.
000100 DISPLAY "Content-Type: text/html ".
000110 DISPLAY "".
000120 DISPLAY "".
000130 DISPLAY "<html><body><h3>Teste Cobol-CGI</h3></body></html>".
000140 STOP RUN.
This program when called via CGI generates the following error:
Erro interno do Servidor!
O servidor encontrou um erro interno e não pode completar sua requisição.
Mensagem de Erro:
Premature end of script headers: TESTE1.EXE
Se você acredita ter encontrado um problema no servidor, por favor entre em contato com o webmaster.
Error 500
localhost
03/05/12 15:52:51
Apache/2.2.21 (Win32) PHP/5.3.9
As I compiled the program:
The same program compiled with openCobol does not generate the error.
Can anyone help me?



