Perl: the Markov chain saw | |
PerlMonks |
Re^3: Website Dateby afoken (Chancellor) |
on May 17, 2012 at 08:33 UTC ( [id://971006]=note: print w/replies, xml ) | Need Help?? |
Now I just have to figure out if it's really the website's server that determines the time or if it's something else. The Date header is set by the webserver, but it may have been changed by any proxy between the webserver and the client. Usually, proxies do not touch the date header, simply because there is no need. The webserver usually just asks the operating system for its idea of the current time, because that's the easiest way to implement it. So, when you request any webserver and read the Date header from the response, you will most times see the operating system's idea of the current time, plus some fractions of a second for transport through the networks. The only notable exceptions are embedded systems without the need for time keeping and thus without any reliable time source, they either omit the Date header or send some nonsense, like 1970-01-01 00:00:00 + uptime. Alexander
-- Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
In Section
Seekers of Perl Wisdom
|
|