I'm trying to get my first RPG CGI program going. I've been able to display the initial HTML page, but when I try to call the program via the Submit button, the browser displays Error 500 "This server is not configured to handle POST". I have POST enabled in my HTTP configuration, and I think I have my Exec statement written OK (/cgi-bin/* /QSYS.LIB/MYLIB.LIB/* --> MYLIB is the library where the RPG program resides). Am I missing something? Help!
Unconfigured Ad Widget
Collapse
Announcement
Collapse
No announcement yet.
Error 500 ????
Collapse
X
-
Error 500 ????
On Thursday, July 30, 1998, 08:34 AM, Jim Michie wrote: I'm trying to get my first RPG CGI program going. I've been able to display the initial HTML page, but when I try to call the program via the Submit button, the browser displays Error 500 "This server is not configured to handle POST". I have POST enabled in my HTTP configuration, and I think I have my Exec statement written OK (/cgi-bin/* /QSYS.LIB/MYLIB.LIB/* --> MYLIB is the library where the RPG program resides). Am I missing something? Help! JimYou don't say what web server you are using. We use the I/Net server on V3R7. On the Inet server it is not enough to just say that the server can be accessed with the Post, you must also indicate that a directory can be accessed with post. If you create a virtual directory and do not indicate POST in the directories limits field, you get the 500 error. JHicks@SUZ.com
-
Error 500 ????
Thanks, but I already have my Exec statements in upper and lower case, and still have the same problem. I've got to believe it's the HTTP configuration - I don't think it even gets as far as calling the CGI program. Here are the statements that I have, in this order: Enable GET Enable POST Enable HEAD Pass /* /htmlsrc/* --->(The initial HTML page is in the IFS) Map /CGI-BIN/* /QSYS.LIB/MYLIB.LIB/* Map /cgi-bin/* /QSYS.LIB/MYLIB.LIB/* Exec /CGI-BIN/* /QSYS.LIB/MYLIB.LIB/* Exec /cgi-bin/* /QSYS.LIB/MYLIB.LIB/* Thanks-
Comment
Comment