× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Yes, it is written in RPG, using the CGIDEV2 utilities. I didn't think the headers are wrong because the problem is very infrecuent, and by reloading the page it comes out correctly.

Here is part of the source (normal response)

<html>
<head>
<title>Llamados Pendientes</title>
<meta http-equiv="pragma" content="no-cache">
</head>
<body onLoad="javascript:document.pide.tel.focus()">
<h2>Llamadas para RAUL </h2>
<table>
<thead><tr>
<th>Telefono</th>

<th align="left">Nombre</th>
<th align="left">Comentario</th>
<SNIP>...........

And the page info says Type text/html


Paul Nicolay wrote:

Hi,

I presume the CGI is written in RPG... however it doesn't matter as I guess 
you're not sending the correct headers. (Content-type).

Maybe you can give some extra information on what you're sending to the 
browser, and what you use for tools/software.

Kind regards,
Paul

----- Oorspronkelijk bericht -----
Van: Raul A. Jager W. [mailto:raul@xxxxxxxxxx]
Verzonden: donderdag, juni 16, 2005 09:52 PM
Aan: 'Websphere iSeries'
Onderwerp: [WDSCI-L] 500 Error interno...

When I (or any other user) call a CGI program for the first time, or after a long rest, sometimes we get a message: "500 Error interno del servidor" (translated is more or less: Internal Server Error. A reload brings the correct page, also by moving the cursor to the address field and pressing "Enter". Not every time the message appears, it is vey hard to repeat.

I think the problem may be a timer expiring before the program sends the page, but I didn't find where can I configure a longer time. I fuond that I can pre-load programs, but since the problem occurs with several different programs this solution will require to configure a pre-load every time I write a new program.

Can you please guide me?
TIA Raul




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.