Re: Re: User Timezone
| From: | tamouse mailing lists | Date: | Sun, 21 Oct 2012 22:02:32 +0000 |
| Subject: | Re: Re: User Timezone | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319543@lists.php.net to get a copy of this message | ||
On Sun, Oct 21, 2012 at 6:12 AM, Ashley Sheridan
<ash@ashleysheridan.co.uk> wrote:
> Don't most browsers include this information in the HTTP headers?
Not that i have seen. Quick test using nc:
Firefox:
tamara@caesar:~$ nc -l 3000
GET / HTTP/1.1
Host: localhost:3000
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:15.0)
Gecko/20100101 Firefox/15.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cookie: author=tamouse
^C
tamara@caesar:~$
Chromium:
tamara@caesar:~$ nc -l 3000
GET / HTTP/1.1
Host: localhost:3000
Connection: keep-alive
User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML,
like Gecko) Ubuntu/11.04 Chromium/18.0.1025.151 Chrome/18.0.1025.151
Safari/535.19
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
^C
tamara@caesar:~$
curl:
tamara@caesar:~$ nc -l 3000
GET / HTTP/1.1
User-Agent: curl/7.21.3 (i686-pc-linux-gnu) libcurl/7.21.3
OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
Host: localhost:3000
Accept: */*
^C
tamara@caesar:~$