|
The CGI specification RFC-3875 defines a set of variables to be passed by a webserver to a CGI program it runs. It contains information about the HTTP or HTTPS request triggering the CGI. In FRITZ!OS the webserver is built into ctlmgr , older models used websrv . Both pass the variables from the CGI specification to the CGI they run. Famous CGI programs in FRITZ!OS are webcm doing the Webinterface and firmwarecfg doing file up- and downloads. If you create supportdata from the Webinterface the request is handled by firmwarecfg calling the supportdata script, which lists the entire environment of this request, including the CGI part.
|
CGI-Environment[edit]
Daily updated index of all CGI environment variables found scanning Supportdata-Probes. Last update: 2024-12-23 07:10 GMT.
The label (cgienv)
in the Variable
column shows there are other objects in this wiki using this name.
The Mod
column shows the amount of models using the respective variable. Click the column header to sort by this number.
Variable
|
Mod
|
Firmware
|
Description
|
Type
|
Origin
|
---|
CLIENTCONNECTION
|
131
|
4.07 - 8.00
|
IP address and port of the client requesting this CGI. AVM specific.
|
Text
|
AVM
|
CONTENT_LENGTH
|
131
|
4.07 - 8.00
|
The length of the body responded by the CGI.
|
Text
|
CGI
|
CONTENT_TYPE (cgienv)
|
131
|
4.07 - 8.00
|
The MIME type of the body responded by the CGI.
|
Text
|
CGI
|
GATEWAY_INTERFACE
|
131
|
4.07 - 8.00
|
The version of the CGI specification used, always 'CGI/1.1' in FRITZ!OS.
|
Text
|
CGI
|
HOME (cgienv)
|
30
|
4.57 - 7.81
|
The home directory of the Shell which launched the webserver.
|
Text
|
Shell
|
HTTPS (cgienv)
|
118
|
4.52 - 8.00
|
on= The client requested this CGI via HTTPS. AVM specific.
|
Text
|
AVM
|
HTTP_ACCEPT
|
131
|
4.07 - 8.00
|
The MIME types the requesting client accepts as a response format.
|
Text
|
CGI
|
HTTP_ACCEPT_ENCODING
|
131
|
4.07 - 8.00
|
A colon separated list of compression formats the client accepts as a respose.
|
Text
|
CGI
|
HTTP_ACCEPT_LANGUAGE
|
131
|
4.07 - 8.00
|
A list of languages the client accepts as a response, and their priority.
|
Text
|
CGI
|
HTTP_COOKIE
|
55
|
4.15 - 7.39
|
A semicolon separated list of variable=value HTTP Cookie assignments.
|
Text
|
CGI
|
HTTP_HOST
|
131
|
4.07 - 8.00
|
The hostname used by the client to access this CGI. May be an IP, fritz.box or a dyndns host.
|
Text
|
CGI
|
HTTP_REFERER
|
131
|
4.07 - 8.00
|
The URL of the referring page from which the client requested this CGI.
|
Text
|
CGI
|
HTTP_USER_AGENT
|
131
|
4.07 - 8.00
|
The name of the user agent used to perform this request. Browser specific.
|
Text
|
CGI
|
PATH (cgienv)
|
|
|
The path to search for commands of the Shell which launched the webserver.
|
[[Special:Types/|]]
|
Shell
|
PATH_INFO (cgienv)
|
131
|
4.07 - 8.00
|
The local path of the executable handling this CGI request.
|
Text
|
CGI
|
PATH_TRANSLATED
|
131
|
4.07 - 8.00
|
The filesystem path of the executable handling this CGI request.
|
Text
|
CGI
|
PROTO (cgienv)
|
1
|
7.27 - 7.81
|
TODO
|
Text
|
Shell
|
PWD (cgienv)
|
153
|
4.07 - 8.00
|
The current working directory of the Shell which launched the webserver.
|
Text
|
AVM
|
REMOTE_ADDR (cgienv)
|
131
|
4.07 - 8.00
|
The IP address of the client requesting this CGI. May be local or public, v4 or v6.
|
Text
|
CGI
|
REMOTE_PORT (cgienv)
|
78
|
6.24 - 8.00
|
The (random) remote port the client used for requesting this CGI.
|
Text
|
CGI
|
REQUEST_METHOD (cgienv)
|
131
|
4.07 - 8.00
|
The HTTP request method (GET, POST, PUT, ...) used for this CGI request.
|
Text
|
CGI
|
RUNLEVEL (cgienv)
|
1
|
7.21
|
The system runlevel while the webserver was launched.
|
Text
|
Shell
|
SCRIPT_NAME (cgienv)
|
131
|
4.07 - 8.00
|
The local path of the executable handling this CGI request.
|
Text
|
CGI
|
SERVER_ADDR
|
98
|
5.50 - 8.00
|
The IP address of the server handling this request. May be local or public, v4 or v6.
|
Text
|
CGI
|
SERVER_PORT
|
78
|
6.24 - 8.00
|
The server port used to request this CGI. Typically 80 for HTTP or 443 for HTTPS.
|
Text
|
CGI
|
SERVER_PROTOCOL
|
131
|
4.07 - 8.00
|
The HTTP version used for this request. Depends on the client request.
|
Text
|
CGI
|
SERVER_SOFTWARE
|
131
|
4.07 - 8.00
|
The name of the server software handling this request. Always 'AVM websrv' in FRITZ!OS.
|
Text
|
CGI
|
SHELL (cgienv)
|
30
|
4.57 - 7.81
|
The absolute path of the Shell which launched the webserver.
|
Text
|
Shell
|
SHLVL (cgienv)
|
78
|
6.25 - 8.00
|
The number of shell levels running above the Shell which launched the webserver.
|
Text
|
Shell
|
TCPCONCURRENCY (cgienv)
|
1
|
7.27 - 7.81
|
TODO
|
Text
|
Shell
|
TCPLOCALADDR
|
1
|
7.27 - 7.81
|
TODO
|
Text
|
Shell
|
TCPREMOTEADDR
|
1
|
7.27 - 7.81
|
TODO
|
Text
|
Shell
|
TERM (cgienv)
|
30
|
4.57 - 7.81
|
The terminal emulation used by the Shell which launched the webserver.
|
Text
|
Shell
|
USER (cgienv)
|
30
|
4.57 - 7.81
|
The user who owns the Shell which launched the webserver.
|
Text
|
Shell
|
WAN_ACCESS
|
7
|
7.01 - 7.61
|
1= The client requested this CGI from the internet (remote HTTPS). AVM specific.
|
Text
|
AVM
|
WEBDIR_PATH
|
106
|
4.86 - 8.00
|
The filesystem path of the HTTP document root of the Webinterface. AVM specific.
|
Text
|
AVM
|
36 CGI variables
|
---|
Missing Supportdata
The data in this article is incomplete due to missing Supportdata-Probes for the models listed below.
If you own any of these models and would like to help then please get in touch.
Fact-Box