Urllib2: Only a partial page retrieved

hpsMouse hpsmouse at gmail.com
Sun May 23 05:42:04 EDT 2010


I know what the problem is.

Server checks client's locale setting to determine how the date should
be displayed. Python don't send locale information by default. So
server fails at that point.

If you add the following field in the HTTP request, the response will
be correct:
Accept-Language: en



More information about the Python-list mailing list