[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gzip (was blogs.msdn.com)



On Thu, 9 Sep 2004 09:50:31 -0700 (PDT), Dare Obasanjo <kpako@xxxxxxxxx> wrote:
> > http://intertwingly.net/stories/2004/09/09/test.py
> 
> I talked to Scott and he said they only provide HTTP
> Compression to clients speaking HTTP 1.1 not HTTP 1.0

I just independently came to the same conclusion.  Sam, if you add the
following hack at the beginning of your script, you will see you get
gzipped content:

import httplib
httplib.HTTP._http_vsn_str = 'HTTP/1.1'

-- 
Cheers,
-Mark