Re: HTTP server beginners questions

Dave <[email protected]>
Newsgroups gmane.comp.systems.as400.web
Message-ID <CAEw=R=sowO7Tf17nJOdedt-2iAVXE1x0P0vr_i1XRk2jO07mhg@mail.gmail.com>
Thanks, I will try this as soon as possible

On Thu, 26 Aug 2021 at 21:02, Slanina, John via WEB400 <
[email protected]> wrote:

> Here are some code snips
>
> dcl-pr QtmhGetEnv  ExtProc('QtmhGetEnv');
>   *n               char(1024);
>   *n               int(10) const;
>   *n               int(10);
>   *n               char(30) const;
>   *n               int(10) const;
>   *n               char(8000);
> end-pr;
>
> monitor;
>   envrec = *blanks;
>   EnvName = 'REQUEST_METHOD';
>   QtmhGetEnv(EnvRec : %size(EnvRec) : RecLen : EnvName :
> %Len(%Trim(EnvName)) :  APIErr);
>   method = %trim(%Subst(EnvRec : 1 : RecLen));
> on-error;
> endmon;
>
>
> monitor;
>   envrec = *blanks;
>   EnvName = 'REQUEST_URI';
>   QtmhGetEnv(EnvRec : %size(EnvRec) : RecLen : EnvName :
> %Len(%Trim(EnvName)) :  APIErr);
>   uri = %trim(%Subst(EnvRec : 1 : RecLen));
> on-error;
> endmon;
>
>
> thanks
>  John Slanina
>
> -----Original Message-----
> From: WEB400 <[email protected]> On Behalf Of Dave
> Sent: Tuesday, August 24, 2021 2:50 AM
> To: [email protected]
> Subject: [WEB400] HTTP server beginners questions
>
> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.