Ticket #16581: 16581.diff
File 16581.diff, 1.7 KB (added by , 13 years ago) |
---|
-
docs/ref/request-response.txt
125 125 Available headers depend on the client and server, but here are some 126 126 examples: 127 127 128 * ``CONTENT_LENGTH`` 129 * ``CONTENT_TYPE`` 130 * ``HTTP_ACCEPT_ENCODING`` 131 * ``HTTP_ACCEPT_LANGUAGE`` 128 * ``CONTENT_LENGTH`` -- The request's body length (string value). 129 * ``CONTENT_TYPE`` -- The request's body mime type. 130 * ``HTTP_ACCEPT_ENCODING`` -- Acceptable encodings. 131 * ``HTTP_ACCEPT_LANGUAGE`` -- Acceptable languages. 132 132 * ``HTTP_HOST`` -- The HTTP Host header sent by the client. 133 133 * ``HTTP_REFERER`` -- The referring page, if any. 134 134 * ``HTTP_USER_AGENT`` -- The client's user-agent string. 135 135 * ``QUERY_STRING`` -- The query string, as a single (unparsed) string. 136 * ``REMOTE_ADDR`` -- The IP address of the client.137 * ``REMOTE_HOST`` -- The hostname of the client.136 * ``REMOTE_ADDR`` -- The client's IP address. 137 * ``REMOTE_HOST`` -- The client's hostname. 138 138 * ``REMOTE_USER`` -- The user authenticated by the Web server, if any. 139 139 * ``REQUEST_METHOD`` -- A string such as ``"GET"`` or ``"POST"``. 140 * ``SERVER_NAME`` -- The hostname of the server.141 * ``SERVER_PORT`` -- The port of the server.140 * ``SERVER_NAME`` -- The server's hostname. 141 * ``SERVER_PORT`` -- The server's port (string value). 142 142 143 143 With the exception of ``CONTENT_LENGTH`` and ``CONTENT_TYPE``, as given 144 144 above, any HTTP headers in the request are converted to ``META`` keys by