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


  • Subject: RE: CGI Programming
  • From: "Stone, Brad V (TC)" <bvstone@xxxxxxxxxxxxxx>
  • Date: Thu, 16 Dec 1999 17:41:41 -0600

The Pass directive simply says to the HTTP server "Yes, you can get
documents in this location."

The Exec directive says to the HTTP server "Oh, I see you are storing CGi
programs in this location.  Also, you want to allow access to this
location."

The second portion of each directive is the physical location on your
machine.  The first part is the virtual location.  So, when someone requests
a document at http://www.your400.com/democgi/

You will be viewing a member, which most likely contains straight HTML.  And
the pass directive you give only allows access to one member, CGIHTML.MBR.

When someone requests documents at http://www.your400.com/cgibin/
they are requesting to run CGI programs that the location is mapped to, in
this case the RPGISCOOL library.

My advice, don't just put in the samples and if they work say "cool".
Understand what they are doing.  

Secondly, buy my book when it comes out if February (shameless plug).  It
should help a lot with HTTP setup, configuration, and CGI programming.  :)
You can do a lot of neat stuff with RPG and the web.

Bradley V. Stone
BVS/Tools - www.bvstools.com
Netshare400 - www.netshare400.com



> -----Original Message-----
> From: Gade_R_Reddy@consecofinance.com
> [mailto:Gade_R_Reddy@consecofinance.com]
> Sent: Thursday, December 16, 1999 4:27 PM
> To: RPG400-L@midrange.com
> Subject: CGI Programming
> 
> 
> 
> I am new to the CGI programming on As400. and trying the 
> examples in the
> new Red Book on IBM web Site.( SG245402.PDF).
> 
> I have a question about CGI Programing  code mentioned in the book.
> 
> Pass /democgi /QSYS.LIB/RPGISCOOL.LIB/CGISRC.FILE/CGIHTML.MBR
> Exec /cgibin/* /QSYS.LIB/RPGISCOOL.LIB/*.PGM
> 
> I can understand the PASS line but what exactly is CGIBIN in 
> the Exec command???.  Is it a library i need to create seperately???.
> 
> Please help
> Gade.
> 
> 
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to 
> RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: 
> david@midrange.com
> +---
> 
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.