× 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.



At 16:40 18.09.01 -0400, you wrote:
>Folks, I tried posting this on the RPG400 group. But I think this is the
>right place since the RPG program seems to work fine.

I do think so, too. But i'm not confessed that the RPG is right :-)

>I have an RPG program that reads an HTML source member from a source
>physical file and writes to the Standard Output using the QtmhWrStout API. I
>have been told in the RPG 400 forum that I need the Content Type: text/html
>header in the HTML member. I checked that.

And you have an empty line after it?
something like contenttype + CRLF + CRLF ?

>But when the RPG CGI program is invoked from the browser using the POST
>method, the program runs but IE6.0 returns error 500.
>NS6.1 also returns 500 but also has a line that says "Interal error:
>execve() failed. Any clues? The HTML member contains a lot of Java Script.

This is definitely not a JavaScript issue.

500 means that there has been a problem on the server.

Normally, when i receive 500's, i have something wrong in my RPG programs.
Check out the joblog of your HTTP-server jobs. (When you used defaults,
then you can use WRKACTJOB JOB(DEFAULT) to find them.) User is QTMHHTTP.
When you're the only user, it's the BCI-job with more than 0.0 CPU seconds.

>Also, do I need to "turn on" logging? I had specified the log file name but
>nothing is being created.

That is another issue. But you won't see anything else than the 500,
nothing that helps you. Just for statistical purposes.

>To make sure that the configuration is right, I wrote another program to
>display Hello World. This one works. But the first one does not.

Well, that proves that the second program is working, not necessarily the
first one. Could be security issues etc.


Mit freundlichen Grüssen / best regards
Anton Gombkötö



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.