Urllib2: Only a partial page retrieved

Dragon Lord dragonlordnld at gmail.com
Sun May 23 07:34:53 EDT 2010


Thanks, that works perfectly!

(oh and I learnt something new too, because I tried using telnet to
connect to the server :) )

On May 23, 11:42 am, hpsMouse <hpsmo... at gmail.com> wrote:
> 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