diff --git a/http-web-services.html b/http-web-services.html index da62a34..da99257 100755 --- a/http-web-services.html +++ b/http-web-services.html @@ -477,7 +477,7 @@ reply: 'HTTP/1.1 200 OK' 'etag': '"7f806d-1a01-9fb97900"', 'last-modified': 'Tue, 02 Jun 2009 02:51:48 GMT', 'server': 'Apache', - 'status': '304', + 'status': '200', 'vary': 'Accept-Encoding,User-Agent'} >>> len(content) ③ 6657 @@ -544,7 +544,7 @@ reply: 'HTTP/1.1 200 OK' 'vary': 'Accept-Encoding,User-Agent'}
httplib2 sends a request, it includes an Accept-Encoding header to tell the server that it can handle either deflate or gzip compression.
-request() method returns, httplib2 has already decompressed the body of the response and placed it in the content variable. If you’re curious about whether or not the response was compressed, you can check the response dictionary; otherwise, don’t worry about it.
+request() method returns, httplib2 has already decompressed the body of the response and placed it in the content variable. If you’re curious about whether or not the response was compressed, you can check response['-content-encoding']; otherwise, don’t worry about it.
httplib2 Handles Redirects