CGI Environmental Variables
When a CGI application is called, the server passes it environmental information
in the env array. This array contains information about the server application,
the browser application, server and browser addresses, protocol version, etc. The
env also contains query information, if any, that was sent with the request.
The following links call the CGI /cgi-bin/params.vi which simply generates
an HTML document describing the contents of the request.
- cgi-bin/params.vi
- This call does not contain query information.
cgi-bin/params.vi?query_parameter
- This call contains the query string query_parameter.
cgi-bin/params.vi/extra/path
- This call passes additional path information /extra/path to the CGI
VI. The CGI receives this path information in the PATH_INFO and PATH_TRANSLATED
environmental variables. See the Customized Page CGI example
for usage of the PATH_INFO environmental variable.
cgi-bin/params.vi/extra/path?query_parameter
- This call passes additional path information /extra/path as well as
the query string query_parameter.
© National Instruments