|
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 <web400-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Dave
Sent: Tuesday, August 24, 2021 2:50 AM
To: web400@xxxxxxxxxxxxxxxxxx
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: WEB400@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx 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: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
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.