Douglas, look at the spool of usr QTMHHTTP.

-----Mensaje original-----
De: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]En
nombre de Douglas W. Palme
Enviado el: Viernes, 07 de Octubre de 2005 03:51 p.m.
Para: Web400 List
Asunto: [WEB400] cgi issue


I think I have the directives issue taken care of, I thought there was some
major differences between the apache for linux directives and the iseries
but apparently not.

I have tried to compile a very simple program using Bob Cozzi's cgilib and I
am getting some errors in the job log.

Here is the program as it is currently written:

 H BNDDIR('CGILIB')
  /INCLUDE XTOOLS/QCPYSRC,CGILIB
 DFNAME            S             10A
 DSZHEADER         C                   'Content-type: text/html\n\n'
 DSZHTML           S           1000A   VARYING
 DNCOUNT           S             10I 0
 C                   callp     CGIINIT()
 C                   EVAL      SZHTML = '<HTML><HEAD><TITLE></TITLE></HEAD>'
 C                   EVAL      SZHTML = '<BODY>HELLO WORLD!</BODY> +
 C                             </HTML>'
 C                   EVAL      NCOUNT = cgiStdout(SZHEADER)
 C                   EVAL      NCOUNT = cgiStdout(SZHTML)
 C                   EVAL      *INLR = *ON
 C                   RETURN

I get an internal server error and here is the output from the error Log:

ZSRV_MSG0107: Premature   end of script headers: File name is CGITEST.PGM
CGI PROGRAM /QSYS.LIB/QCGISRC.LIB/CGITEST.PGM RETURNED EXCEPTION ID MCH3401
SEE JOBLOG FOR JOB 017694/QTMHHTTP  /APACHEDFT

When I try to display the job log with DSPJOBLOG it tells me it can't
display the log since the job has ended.

Any suggestions would be appreciated.

Douglas

--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.

*********************************************************************
Este mensaje y sus adjuntos son confidenciales y de uso exclusivo
para el usuario de la direccion de correo electronico a quien
esta dirigido. Puede contener informacion amparada por el secreto
profesional. Si hubiese recibido este mensaje por error,
por favor informe tal situacion al emisor, devolviendole el correo
electronico y eliminandolo de su sistema, no pudiendo en tal
caso copiar, enviar, revelar el contenido o utilizar alguna parte
de este mensaje o de sus adjuntos.
No se garantiza la seguridad o la exactitud de las comunicaciones
por Internet debido a que la informacion puede ser interceptada,
modificada, perdida, llegar tarde o contener virus.
El emisor, por lo tanto, no acepta responsabilidad por errores u
omisiones en el texto de este mensaje que surjan a partir de una
transmision por Internet. Las opiniones vertidas en este mensaje
son propias del emisor y no del BANCO EMPRESARIO DE TUCUMAN Coop. Ltdo.

This message and any attachments are confidential to the ordinary
user of the e-mail address to which it was addressed.
It can contain information aided by the professional secret.
If you are not the addressee you may not copy, forward, disclose or
use any part of the message in error, please notify the sender
immediately by return e-mail and delete it from your system.
Internet communications cannot be guaranteed to be secure or error
free as information could be intercepted, corrupted, lost, arrive
liability for any errors or omissions in the context of this message
which arise as a result of Internet transmission.
Any opinions contained in this message are those of the author and
are not given or endorsed by the BANCO EMPRESARIO DE TUCUMAN Coop. Ltdo.
***********************************************************************

*********************************************************************
Este mensaje y sus adjuntos son confidenciales y de uso exclusivo 
para el usuario de la direccion de correo electronico a quien 
esta dirigido. Puede contener informacion amparada por el secreto 
profesional. Si hubiese recibido este mensaje por error, 
por favor informe tal situacion al emisor, devolviendole el correo 
electronico y eliminandolo de su sistema, no pudiendo en tal 
caso copiar, enviar, revelar el contenido o utilizar alguna parte 
de este mensaje o de sus adjuntos.
No se garantiza la seguridad o la exactitud de las comunicaciones 
por Internet debido a que la informacion puede ser interceptada, 
modificada, perdida, llegar tarde o contener virus. 
El emisor, por lo tanto, no acepta responsabilidad por errores u 
omisiones en el texto de este mensaje que surjan a partir de una 
transmision por Internet. Las opiniones vertidas en este mensaje 
son propias del emisor y no del BANCO EMPRESARIO DE TUCUMAN Coop. Ltdo.

This message and any attachments are confidential to the ordinary 
user of the e-mail address to which it was addressed.
It can contain information aided by the professional secret.
If you are not the addressee you may not copy, forward, disclose or 
use any part of the message in error, please notify the sender 
immediately by return e-mail and delete it from your system.
Internet communications cannot be guaranteed to be secure or error 
free as information could be intercepted, corrupted, lost, arrive 
liability for any errors or omissions in the context of this message
which arise as a result of Internet transmission.
Any opinions contained in this message are those of the author and 
are not given or endorsed by the BANCO EMPRESARIO DE TUCUMAN Coop. Ltdo.
***********************************************************************

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.