Common Gateway Interface (CGI) Variables
Code: CGI
Client - variables relating to the client browser accessing the URL
- CERT_ISSUER
- CERT_SUBJECT
- CLIENT_CERT_ENCODED
- HTTP_ACCEPT
- HTTP_IF_MODIFIED_SINCE
- HTTP_REFERER - refering url
- HTTP_USER_AGENT - browser used to retrieve the page = CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Request - variables relating to the method of request
- AUTH_TYPE
- CONTENT_LENGTH - the legth in bytes of additional data (for example, post data)
- CONTENT_TYPE - for example, post, get and head
- PATH_INFO - url after the server name for the url
- PATH_TRANSLATED - similar to path info but with any virtual directories translated
- QUERY_STRING - the portion of the url following the "?" (for urls with a ?)
- REMOTE_ADDR - IP address of client = 38.103.63.17
- REMOTE_HOST - 38.103.63.17
- REMOTE_USER -
- REQUEST_METHOD
- SCRIPT_NAME - path to a script to execute (for self referencing URLs)
Server - variables relating to the web server
- SERVER_NAME - server for the url
- GATEWAY_INTERFACE - CGI version runing on the server
- SERVER_PORT - port number to which the request was sent
- SERVER_PROTOCOL
- SERVER_SOFTWARE - web server software version running on the server
|
More CGI variable information:
|