
BinaryRead | 353
HttpRequest
Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
QUERY_STRING
Returns the raw query string (if any) passed with the request.
REMOTE_ADDR
Returns the IP address of the machine making the request.
REMOTE_HOST
Returns the DNS name of the machine making the request, if available.
Otherwise, returns the IP address.
REQUEST_METHOD
Returns the HTTP request method (GET, POST, etc.) used in the request.
SCRIPT_NAME
Returns a virtual path to the page being executed.
SERVER_NAME
Returns the server name, DNS name, or IP address of the server.
SERVER_PORT
Returns the port number on which the request was received.
SERVER_PORT_SECURE
Returns a string containing either 0 or 1, depending on whether the request
was received on a secure port (1) or not (0).
SERVER_PROTOCOL
Returns the name and version of the protocol used to handle the client
request. For IE 5.5 and IIS 5, this name and version would be “HTTP/1.1”.
SERVER_SOFTWARE
Returns the name and version of the web server software.
URL
Returns the base URL of the request (i.e., everything after the domain name).
HTTP_CONNECTION
Returns the type of connection established.
HTTP_ACCEPT
Returns the value of the HTTP Accept header.
HTTP_ACCEPT_ENCODING
Returns the value of the HTTP Accept-Encoding header.
HTTP_ACCEPT_LANGUAGE
Returns the value of the HTTP Accept-Language header.
HTTP_HOST ...