Why does curl receive an expired cookie?
In a response to some url the server is sending a
302 Found response and a cookie. In Firefox this cookie gets set seamlessly. Firebug says:
Set-Cookie somekookie=91b115e3d4a5889ed93e70a7ddb24957a1eb0e27cbcd96a3342a8064; expires=Sun, 24-Oct-2010 23:28:55 GMT; path=/; domain=.somedomain.ru
However when curl requests the same url, the cookie is expired, curl's output:
* Added cookie somecookie="deleted" for domain somedomain.com, path /, expire 1224891945 < Set-Cookie: somecookie=deleted; expires=Fri, 24-Oct-2008 23:45:45 GMT; path=/; domain=.somedomain.com
Why does the date appear to be so old and how to resolve this issue?