64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
|REMOTE\_ADDR|→|IP address of the client|
|REMOTE\_PORT|→|TCP port of the client|
|REQUEST\_METHOD|→|"GET" or "POST" or "HEAD"|
|SAME\_ORIGIN|→|True if this request is from the same origin|
|SCRIPT\_FILENAME|→|Full pathname of the Wapp application script|
|SCRIPT\_NAME|→|Prefix of PATH\_INFO that identifies the application script|
|SELF\_URL|→|URL of this request without PATH\_TAIL|
|WAPP\_MODE|→|One of "cgi", "scgi", "server", or "local"|
4.0 URL Parsing
---------------
Assuming "env.tcl" is the name of the Wapp application script:
>
|
>
|
|
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
|REMOTE\_ADDR|→|IP address of the client|
|REMOTE\_PORT|→|TCP port of the client|
|REQUEST\_METHOD|→|"GET" or "POST" or "HEAD"|
|SAME\_ORIGIN|→|True if this request is from the same origin|
|SCRIPT\_FILENAME|→|Full pathname of the Wapp application script|
|SCRIPT\_NAME|→|Prefix of PATH\_INFO that identifies the application script|
|SELF\_URL|→|URL of this request without PATH\_TAIL|
|SERVER\_ADDR|→|IP address of the webserver sending an SCGI request|
|WAPP\_MODE|→|One of "cgi", "scgi", "remote-scgi", "server", or "local"|
4.0 URL Parsing
---------------
Assuming "env.tcl" is the name of the Wapp application script:
>
|