prayagverma / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
1 stars 0 forks source link

Add gzip support #510

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run heavy HTTP requests

What is the expected output? What do you see instead?
I see large network traffic values

What version of the product are you using?
2.0.14

Please provide any additional information below.
I see that google data API has support of gzip encoding of HTTP responses: 
http://code.google.com/intl/ru-RU/apis/gdata/faq.html#gzip but python library 
don't support this one. May be you can implement smth like 
atom.http_core.GzippedHttpClient() ?

Original issue reported on code.google.com by seriy...@gmail.com on 31 Mar 2011 at 3:57

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I create some hack for implement gzip support. See attachment. Usage:
<pre><code>
    import gzipped_http
    import gdata.contentforshopping.client

    gdata.contentforshopping.client.ContentForShoppingClient(
        account_id="...merchant id...",
        auth_token=gdata.gauth.ClientLoginToken("... auth token ..."),
        http_client=gzipped_http..GzippedHttpClient()#!!!
    )
</code></pre>

Original comment by seriy...@gmail.com on 12 Apr 2011 at 3:39

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by afs...@google.com on 7 Oct 2011 at 12:23