Have you tried doing a STRDBG on the program and then calling it from
the web? Does the debug session start?

Justin Houchin
Programmer and Web Developer
Reliatek, Inc
Justin@reliatek.com


-----Original Message-----
From: web400-admin@midrange.com [mailto:web400-admin@midrange.com] On
Behalf Of David J. Smith
Sent: Wednesday, October 16, 2002 7:09 PM
To: web400@midrange.com
Subject: [WEB400] HTTP 500 Error

Hello All:

Another newbie with a HTTP 500 error.

HTScript ERROR....... Bad script request -- script
'/QSYS.LIB/DAVSM01CGI.LIB/WSLI010.PGM' not found or not executable.

I've reviewed the archives, but can not get past this.  It has to be a
HTTP config error or a binding error, or something, because the
executable program is never getting executed.  The last used info on the
object shows it has never been used.

Here is my information:

V5R1.
Created a copy of QZHBCGI in my library DAVSM01CGI.
Created Binding Directory DAVSM01CGI in my library.
Created binding Directory entry:        addbnddire davsm01cgi/davsm01cgi
obj(davsm01cgi/qzhbcgi)
Created RPGLE program WSLI010 with H specs:

                *************** Beginning of data ***************
0001.00 H DFTACTGRP(*NO) BNDDIR('DAVSM01CGI/DAVSM01CGI')
0002.00 H OPTION(*NODEBUGIO: *SRCSTMT)

Made authority public(*ALL) on library and program. (For test purposes
only)

I have a dir on the IFS called DJSTEST where my HTML document is located
called WSLI010HTML.HTML

My HTTP Config is as follows:

                00010     # * * * * * * * * * * * * * * * * * * * * * *
* * * * *
00020     Enable                        GET
00030     Enable                        HEAD
00040     Enable                        POST
00050     Exec /cgi-bin/* /QSYS.LIB/DAVSM01CGI.LIB/*.PGM %%EBCDIC%%
00060     Pass /QSYS.LIB/DAVSM01CGI.LIB/*
00070     Pass /DJSTEST/*
00080     Redirect /testredirect/* http://www.emumm.com
00090     Welcome                       index.html
00100     AccessLog /DJSLOGS/LOG
00110     LogFormat                    Common
00120     LogTime                      LocalTime

I tested the redirect portion of the config and it works as it should.
When I go to my html form: http://wh01dev/djstest/Wsli010html.html it
brings up my input form, but when I hit submit button I get the famous:
The page cannot be displayed...HTTP 500 - Internal server error.
This is my HTML:
<html><head>
<title>Untitled</title>
</head>
<body>
<img src="http://wh01dev/djstest/navbar.gif"; width="607" height="107"
border="0">
<P>
<BASEFONT FACE = "Arial,Helvetica"  Size="3" color="#081780">
<FORM NAME="Input" METHOD=POST ACTION="HTTP://WH01DEV/cgi-bin/WSLI010";>
 Customer Number : <INPUT TYPE="TEXT" NAME="@@CUSNBR" SIZE="7"
MAXLENGTH="8">
<P>
Information:
<BR><INPUT TYPE="CHECKBOX" NAME="@@CUSINF" VALUE='Y'>Customer
Information
<BR><INPUT TYPE="CHECKBOX" NAME="@@CUSSHP" VALUE='Y'>Ship To Information
<BR><INPUT TYPE="CHECKBOX" NAME="@@YTDSLS" VALUE='Y'>Year To Date Sales
$
<BR><INPUT TYPE="CHECKBOX" NAME="@@YTDDTL" VALUE='Y'>Detail Sales
<P><BUTTON TYPE="SUBMIT" VALUE="SUBMIT" NAME="@@SUBMIT">SUBMIT </BUTTON>
<BUTTON TYPE="RESET" VALUE="RESET" NAME="@@RESET">RESET </BUTTON>
</FORM>
</FONT>
</body>
</html>
Any help would be greatly appreciated.  I've lost a lot of hair over
this in the last couple of days....and I do not have much left.

David Smith
President
Advanced Information Solutions, Inc.
Email:  dsmith@ais400.com
Phone:  517.548.7170

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






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.