Re: HTTP server beginners questions
Brad Stone <[email protected]>
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <CAAGV8Of1-LhNTn-fmVX2H=H5z4FEO=LbT=k63V25AVWOojo2sw@mail.gmail.com> |
I've not ever used QIBM_CGI_LIBRARY_LIST in many years and CGI programming (over 20 now). The library the CGI program doesn't need to be in the library list. It's treated as such. I've always manipulated the library list for data, things outside the CGI library, etc. programmatically (I have some pushLib and popLib functions to do that). This way environment is set by CGI library and control records, not the apache server. On Wed, Aug 25, 2021 at 1:24 AM Dave <[email protected]> wrote: > Hi Vern, > > I have had some web exposure, a short exploration of CGIDEV2 back in 2007, > and the little I learned has rusted away :-) > > Thanks for that link, it'll definitely come in useful soon. > I was under the impression that the QIBM_CGI_LIBRARY_LIST only indicated > where to find the CGI program, but once called it would not be able to > access any of the objects in those libraries. For that reason, I was > calling a CL program to set my library list. > > > On Tue, 24 Aug 2021 at 14:18, Vern Hamberg <[email protected]> > wrote: > > > Hi Dave > > > > Welcome to the wonderful world of WWW - this DOES set the library list > > for what is called - I Googled for the environment variable and went to > > this 1st hit - > > > > https://www.ibm.com/support/pages/cgi-frequently-asked-questions-0 > > > > There you can find the question, "How can I change the library list for > > my CGI program?", which tells us that "The listed libraries replace the > > libraries in the user part of the library list. When the CGI program has > > finished processing, these libraries will be removed from the library > > list and the library list will be restored to what it was before the CGI > > program ran." > > > > Pretty cool - you get to change to exactly what is needed in the HTTP > > server job, just for anything called through this setup. > > > > HTH > > Vern > > > > On 8/24/2021 1:50 AM, Dave wrote: > > > Hello, > > > > > > I have a rather feeble level in this subject so please go easy on me. > > > A server instance has already been set up for me (see below), which > > > obviously will need modifying. > > > > > > What is the meaning of setenv QIBM_CGI_LIBRARY_LIST "QTEMP;CGILIB;YAJL" > > ? > > > Surely this has nothing to do with the library list used by the program > > > that will run on the i? > > > > > > How do I know what method (GET or POST) has been used? > > > > > > Thanks! > > > > > > > > > <Directory /qsys.lib/cgilib.lib> > > > AddDefaultCharset UTF-8 > > > Order Allow,Deny > > > Allow From all > > > setenv QIBM_CGI_LIBRARY_LIST "QTEMP;CGILIB;YAJL" > > > </Directory> > > > > > > > > > > > > # Alias for tests > > > ScriptAliasMatch /myURL(.*) /qsys.lib/ CGILIB.lib/$1.pgm > > > > > > # Exemple alias for a specified program : > > > # ScriptAlias /myURL/test /qsys.lib/ CGILIB.lib/TEST_3.pgm > > > > -- > > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing > > list > > To post a message email: [email protected] > > To subscribe, unsubscribe, or change list options, > > visit: https://lists.midrange.com/mailman/listinfo/web400 > > or email: [email protected] > > Before posting, please take a moment to review the archives > > at https://archive.midrange.com/web400. > > > > > > > -- > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing > list > To post a message email: [email protected] > To subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/web400 > or email: [email protected] > Before posting, please take a moment to review the archives > at https://archive.midrange.com/web400. > > -- This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/web400.