Environment Variables

Request Headers

Name Description
HTTP_ACCEPT Specifies which Internet media types are acceptable for the response.
HTTP_ACCEPT_CHARSET Specifies which character encodings (confusingly called "charsets") are acceptable for the response.
HTTP_ACCEPT_ENCODING Specifies which data format transformations, confusingly called content encodings (such as compression mechanisms), are acceptable for the response.
HTTP_ACCEPT_LANGUAGE Specifies which natural languages are acceptable for the response.
HTTP_HOST Specifies the Internet host and port number of the resource being requested.
HTTP_USER_AGENT Contains information about the user agent (client) originating the request.

General Information

Name Description
SERVER_SOFTWARE The name and version of the information server software answering the request (and running the gateway). Format: name/version
SERVER_NAME The server's hostname, DNS alias, or IP address as it would appear in self-referencing URLs.
SERVER_PROTOCOL The name and revision of the information protocol this request came in with. Format: protocol/revision
SERVER_PORT The port number to which the request was sent.
REQUEST_METHOD The method with which the request was made, for example "GET", "HEAD", "POST", etc.
PATH_INFO The extra path information, as given by the client. In other words, scripts can be accessed by their virtual pathname, followed by extra information at the end of this path.
QUERY_STRING The information which follows the ? in the URL which referenced this script. This is the query information.
REMOTE_HOST The hostname making the request. If the server does not have this information, it should set to REMOTE_ADDR and leave this unset.
REMOTE_ADDR The IP address of the remote host making the request.
© 1996-2008 por Ariel Ortiz Ramírez (ariel.ortiz@itesm.mx)
ArielOrtiz.com | Desarrollado en Django | Licencia de Creative Commons | XHTML válido | CSS válido