|
1
|
{src/web/method/wrap-cgi.i}
|
|
2
|
|
|
3
|
output-content-type("text/html").
|
|
4
|
|
|
5
|
// http://localhost/scripts/cgiip.exe/WService=wsbroker1/testwebcontext.p
|
|
6
|
|
|
7
|
output to "web".
|
|
8
|
put unformatted "Check cgilist.txt file in broker home directory.".
|
|
9
|
output close.
|
|
10
|
|
|
11
|
output to cgilist.txt.
|
|
12
|
|
|
13
|
put unformatted web-context:get-cgi-list("env").
|
|
14
|
|
|
15
|
def var ch as char.
|
|
16
|
def var i as int.
|
|
17
|
def var e as char.
|
|
18
|
def var v as char.
|
|
19
|
|
|
20
|
ch = web-context:get-cgi-list("env").
|
|
21
|
do i = 1 to num-entries(ch):
|
|
22
|
e = entry(i, ch).
|
|
23
|
v = web-context:get-cgi-value("env", e).
|
|
24
|
put unformatted e space(10) v skip.
|
|
25
|
end.
|
|
26
|
|
|
27
|
put unformatted skip(1).
|
|
28
|
|
|
29
|
put unformatted "config values" skip(1).
|
|
30
|
put unformatted "srvrAppMode" space(10) web-context:get-config-value("srvrAppMode") skip.
|
|
31
|
put unformatted "srvrDebug" space(10) web-context:get-config-value("srvrDebug") skip.
|
|
32
|
put unformatted "applicationURL" space(10) web-context:get-config-value("applicationURL") skip.
|
|
33
|
put unformatted "defaultCookiePath" space(10) web-context:get-config-value("defaultCookiePath") skip.
|
|
34
|
put unformatted "defaultCookieDomain" space(10) web-context:get-config-value("defaultCookieDomain") skip.
|
|
35
|
put unformatted "wsRoot" space(10) web-context:get-config-value("wsRoot") skip.
|
|
36
|
put unformatted "srvrAppMode" space(10) web-context:get-config-value("srvrAppMode") skip.
|
|
37
|
put unformatted "fileUploadDirectory" space(10) web-context:get-config-value("fileUploadDirectory") skip.
|
|
38
|
|
|
39
|
|
|
40
|
output close.
|
|
41
|
|
|
42
|
|
|
43
|
/*
|
|
44
|
a. web-context:get-cgi-list(env):
|
|
45
|
- I found in ADE possible values of: ENV, QUERY, FORM
|
|
46
|
- do you know of any other possible values for this argument?
|
|
47
|
|
|
48
|
b web-context:get-cgi-value(env, varname, delimiter)
|
|
49
|
- env looks to be the same as for 'get-cgi-list'
|
|
50
|
|
|
51
|
c. web-context:get-config-value(name) - I found these possible names in ADE classic web-speed files:
|
|
52
|
- srvrAppMode
|
|
53
|
- srvrDebug
|
|
54
|
- applicationURL
|
|
55
|
- defaultCookiePath
|
|
56
|
- defaultCookieDomain
|
|
57
|
- wsRoot
|
|
58
|
- srvrAppMode
|
|
59
|
- fileUploadDirectory
|
|
60
|
|
|
61
|
Do you know if applications would rely explicitly on 'get-config-value'?
|
|
62
|
*/
|