libgmail failure

James Stroud jstroud at
Thu Aug 23 01:11:29 CEST 2007 at wrote:
> On Aug 22, 10:26 am, James Stroud <jstr... at> wrote:
>> Have you thought about spoofing explorer? Always spoof explorer.
>> James
> I have not heard of this.  How do you spoof IE in libgmail?

You might have to edit directly and add a header to the 
urllib2.Request() call. Here are the relevant lines from some code I 
wrote (spoofing netscape it looks like):

user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
txheaders =  {'User-agent' : user_agent}
req = urllib2.Request(pda, signin_params, txheaders)

See if this doesn't fix you up.


More information about the Python-list mailing list