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



Turn on debug in CGIDEV2.  Call the program again from the
browser.  Then look in CGIDEBUG.  It should show exactly
what is being spit out by the program.

Also, try calling the program from the command line.  you
should see it flash and show the HTML quickly.

Finally, recompile the program.  Try to use the browser
again.  Then look at the last used date on the program
objects.  If it's zero, then it's a config issue.  If not,
it's a problem with the program (again, most likely the
headers).

Brad

On Mon, 15 May 2006 12:20:28 -0500
 "Shannon ODonnell" <sodonnell@xxxxxxxxxxxxxxxxx> wrote:
> Here's the error I see in the logs when I attempt to open
> one of the
> programs that use CGIDEV2:
> 
> 
> ZSRV_MSG0109: /QSYS.LIB/MYLIB.LIB/MyProgramName is not a
> cgi program:
> /QSYS.LIB/MYLIB.
> 
> But of course, my own CGI programs work fine, with no
> errors, using the same
> syntax in the address bar.
> 
> 
> Any thoughts?
> 
> 
> I'm 99% sure I'm going to have to dig deeper into CGIDEV2
> to figure this
> out, but I'm posting this last error message here to try
> to rule out
> anything else, if possible. 
> 
> 
> 
> 
> -----Original Message-----
> From: web400-bounces@xxxxxxxxxxxx
> [mailto:web400-bounces@xxxxxxxxxxxx] On
> Behalf Of Brad Stone
> Sent: Monday, May 15, 2006 12:02 PM
> To: Web Enabling the AS400 / iSeries
> Subject: Re: [WEB400] CGIDEV Question
> 
> Yes, if it's prompting for download it is connecting to
> the
> CGI, but the content-type headers are incorrect.
> 
> Not sure on the config.  I always use ScriptAliasMatch
> like
> this:
> 
> ScriptAliasMatch ^/cgi-bin/(.*)
> /qsys.lib/bvstools.lib/$1.pgm 
> 
> That way url/cgi-bin/mypgm 
> 
> will map to mypgm.pgm.
> 
> 
> 
> -- 
> 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.
> 

Bradley V. Stone
BVS.Tools
www.bvstools.com

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.