By default, a web server gets some data from the client in exchange for its services. The usual HTTP requests come with some headers that are usually not in use, but can give us information about the users. Here is a table of possible interesting HTTP GET headers:
Header Name |
Example Value |
Description |
---|---|---|
Accept |
*/*, text/html |
A list of MIME types the client will accept for a request |
Accept-Charset Accept-Encoding |
utf-8,iso-8859-1 *, gzip, compress |
A list of character sets and encodings (mostly compression) that the client will accept |
Accept-Language |
en-us, en-gb;q=0.2, en |
A list of acceptable languages; we could use this as an alternative or in conjunction with |
Referer |
|
The site from which the client was directed to the requested site |
User-Agent |
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) |
A String containing information about the browser used |
We can add any of these header values to our access log by adding "%{header...