blob: 0df4afd962a288b46d0d616711b369d89544ab52 [file] [log] [blame]
Joe Gregorioa91406d2012-09-11 13:20:44 -040010.7.6
2 Fixes for App Engine 2.7.
3
Joe Gregorioed72cba2012-08-28 12:19:28 -040040.7.5
5 Keys are lowercase in a Response object, regardless of how Response object is constructed.
6 Add control so that Authorization: headers aren't forwarded on a 3xx response by default.
7 Set the reason correctly when running on App Engine. Patch from Alain Vongsouvanh. Reviewed in http://codereview.appspot.com/6422051/
8 Fix proxy socks for SSL connections. Fixes issue #199.
9 You can now set httplib2.RETRIES to the number of retries before a request
10 is considered to fail It is set to a default of 2 to mimic the traditional
11 behavior of httplib2.
12
13 The following issues have been addressed:
14
15 223 HEAD requests fail calling the close() method of ResponseDict instance.
16 222 Can't disable cert validation in appengine
17 204 Credentials can leak in HTTP redirects
18 210 Different API between Python 2 and Python 3 version breaks wsgi_intercept
19 214 ValueError on malformated cache entries
20 204 Credentials can leak in HTTP redirects
21
22
Joe Gregoriob850bd02012-03-02 08:37:22 -0800230.7.3
Jason R. Coombs43840892011-08-09 10:30:46 -040024 ProxyInfo objects now can construct themselves from environment
25 variables commonly-used in Unix environments. By default, the Http
26 class will construct a ProxyInfo instance based on these environment
27 variables. To achieve the previous behavior, where environment
28 variables are ignored, pass proxy_info=None to Http().
29
30 The following issues have been addressed:
31
32 Issue 159: automatic detection of proxy configuration.
Joe Gregoriob850bd02012-03-02 08:37:22 -080033 Issue 179: Allow unicode in proxy hostname.
34 Issue 194: Added support for setuptools.
35 Fixes for HTTP CONNECT proxies.
Jason R. Coombs43840892011-08-09 10:30:46 -040036
Joe Gregoriob2cfdf62011-06-16 10:11:13 -0400370.7.1
38 Fix failure to install cacerts.txt for 2.x installs.
39
Joe Gregoriob0c82ca2011-06-13 15:13:11 -0400400.7.0
41 The two major changes in this release are SSL Certificate
42 checking and App Engine support. By default the certificates
43 of an HTTPS connection are checked, but that can be disabled
44 via disable_ssl_certificate_validation. The second change
45 is that on App Engine there is a new connection object
46 that utilizes the urlfetch capabilities on App Engine, including
47 setting timeouts and validating certificates.
48
49 The following issues have been addressed:
50
51 Fixes issue 72. Always lowercase authorization header.
52 Fix issue 47. Redirects that become a GET should not have a body.
53 Fixes issue 19. Set Content-location on redirected HEAD requests
Jason R. Coombs43840892011-08-09 10:30:46 -040054 Fixes issue 139. Redirect with a GET on 302 regardless of the originating method.
55 Fixes issue 138. Handle unicode in headers when writing and retrieving cache entries. Who says headers have to be ASCII!
Joe Gregoriob0c82ca2011-06-13 15:13:11 -040056 Add certificate validation. Work initially started by Christoph Kern.
57 Set a version number. Fixes issue # 135.
58 Sync to latest version of socks.py
59 Add gzip to the user-agent, in case we are making a request to an app engine project: http://code.google.com/appengine/kb/general.html#compression
60 Uses a custom httplib shim on App Engine to wrap urlfetch, as opposed
61 Add default support for optimistic concurrency on PATCH requests
62 Fixes issue 126. IPv6 under various conditions would fail.
63 Fixes issue 131. Handle socket.timeout's that occur during send.
64 proxy support: degrade gracefully when socket.socket is unavailable
65
66
Joe Gregoriof3116552009-12-28 13:02:42 -0500670.6.0
68
69 The following issues have been addressed:
70
Jason R. Coombs43840892011-08-09 10:30:46 -040071 #51 - Failure to handle server legitimately closing connection before request body is fully sent
72 #77 - Duplicated caching test
Joe Gregoriof3116552009-12-28 13:02:42 -050073 #65 - Transform _normalize_headers into a method of Http class
Jason R. Coombs43840892011-08-09 10:30:46 -040074 #45 - Vary header
75 #73 - All files in Mercurial are executable
76 #81 - Have a useful .hgignore
77 #78 - Add release tags to the Mercurial repository
78 #67 - HEAD requests cause next request to be retried
Joe Gregoriof3116552009-12-28 13:02:42 -050079
80 Mostly bug fixes, the big enhancement is the addition of proper Vary: header
81 handling. Thanks to Chris Dent for that change.
82
83 The other big change is the build process for distributions so that both python2 and python3
84 are included in the same .tar.gz/.zip file.
85
Joe Gregorio66611ff2009-07-19 01:32:17 -0400860.5.0
87
88 Added Python 3 support
89
90 Fixed the following bugs:
91
Jason R. Coombs43840892011-08-09 10:30:46 -040092 #12 - Cache-Control: only-if-cached incorrectly does request if item not in cache
Joe Gregorio66611ff2009-07-19 01:32:17 -040093 #39 - Deprecation warnings in Python 2.6
Joe Gregorio891439e2009-07-28 10:52:36 -040094 #54 - Http.request fails accesing Google account via http proxy
Joe Gregorio66611ff2009-07-19 01:32:17 -040095 #56 - Block on response.read() for HEAD requests.
96 #57 - Timeout ignore for Python 2.6
97 #58 - Fixed parsing of Cache-Control: header to make it more robust
98
Joe Gregorio891439e2009-07-28 10:52:36 -040099 Also fixed a deprecation warning that appeared between Python 3.0 and 3.1.
Joe Gregorio66611ff2009-07-19 01:32:17 -0400100
joe.gregorio5fcc1992007-10-23 15:12:17 +00001010.4.0
jcgregorio14644372007-07-30 14:13:37 +0000102
joe.gregorio5fcc1992007-10-23 15:12:17 +0000103 Added support for proxies if the Socksipy module is installed.
104
Jason R. Coombs43840892011-08-09 10:30:46 -0400105 Fixed bug with some HEAD responses having content-length set to
joe.gregorio5fcc1992007-10-23 15:12:17 +0000106 zero incorrectly.
107
108 Fixed most except's to catch a specific exception.
jcgregorio14644372007-07-30 14:13:37 +0000109
110 Added 'connection_type' parameter to Http.request().
Jason R. Coombs43840892011-08-09 10:30:46 -0400111
joe.gregorio5fcc1992007-10-23 15:12:17 +0000112 The default for 'force_exception_to_status_code' was changed to False. Defaulting
113 to True was causing quite a bit of confusion.
jcgregorio14644372007-07-30 14:13:37 +0000114
115
jcgregorio463a8db2007-03-09 03:27:14 +00001160.3.0
117 Calling Http.request() with a relative URI, as opposed to an absolute URI,
118 will now throw a specific exception.
119
120 Http() now has an additional optional parameter for the socket timeout.
121
122 Exceptions can now be forced into responses. That is, instead of
123 throwing an exception, a good httlib2.Response object is returned
124 that describe the error with an appropriate status code.
125
126 Many improvements to the file cache:
127
Jason R. Coombs43840892011-08-09 10:30:46 -0400128 1. The names in the cache are now much less
jcgregorio463a8db2007-03-09 03:27:14 +0000129 opaque, which should help with debugging.
130
Jason R. Coombs43840892011-08-09 10:30:46 -0400131 2. The disk cache is now Apache mod_asis compatible.
132
jcgregorio463a8db2007-03-09 03:27:14 +0000133 3. A Content-Location: header is supplied and stored in the
134 cache which points to the original requested URI.
135
136 User supplied If-* headers now override httplib2 supplied
137 versions.
138
139 IRIs are now fully supported. Note that they MUST be passed in
140 as unicode objects.
141
142 Http.add_credentials() now takes an optional domain to restrict
143 the credentials to being only used on that domain.
144
Jason R. Coombs43840892011-08-09 10:30:46 -0400145 Added Http.add_certificate() which allows setting
jcgregorio463a8db2007-03-09 03:27:14 +0000146 a key and cert for SSL connnections.
147
148 Many other bugs fixed.
149
150
jcgregorioa0713ab2006-07-01 05:21:34 +00001510.2.0
152 Added support for Google Auth.
jcgregorio2d66d4f2006-02-07 05:34:14 +0000153
Jason R. Coombs43840892011-08-09 10:30:46 -0400154 Added experimental support for HMACDigest.
jcgregorioa0713ab2006-07-01 05:21:34 +0000155
jcgregorio92088922006-07-01 05:53:21 +0000156 Added support for a pluggable caching system. Now supports
157 the old system of using the file system and now memcached.
158
Jason R. Coombs43840892011-08-09 10:30:46 -0400159 Added httplib2.debuglevel which turns on debugging.
jcgregorio2d66d4f2006-02-07 05:34:14 +0000160
jcgregorio92088922006-07-01 05:53:21 +0000161 Change Response._previous to Response.previous.
162
163 Addded Http.follow_all_redirects which forces
Jason R. Coombs43840892011-08-09 10:30:46 -0400164 httplib2 to follow all redirects, as opposed to
jcgregorio92088922006-07-01 05:53:21 +0000165 following only the safe redirects. This makes the
166 GData protocol easier to use.
167
168 All known bugs fixed to date.
169
jcgregorio8421f272006-02-14 18:19:51 +00001700.1.1
jcgregorio2d66d4f2006-02-07 05:34:14 +0000171
jcgregorio4177ca12006-02-16 10:50:58 +0000172 Fixed several bugs raised by James Antill:
jcgregorio2d66d4f2006-02-07 05:34:14 +0000173 1. HEAD didn't get an Accept: header added like GET.
174 2. HEAD requests did not use the cache.
175 3. GET requests with Range: headers would erroneously return a full cached response.
jcgregorio8421f272006-02-14 18:19:51 +0000176 4. Subsequent requests to resources that had timed out would raise an exception.
jcgregorio2d66d4f2006-02-07 05:34:14 +0000177 And one feature request for 'method' to default to GET.
178
Jason R. Coombs43840892011-08-09 10:30:46 -0400179 Xavier Verges Farrero supplied what I needed to make the
jcgregorio4177ca12006-02-16 10:50:58 +0000180 library work with Python 2.3.
jcgregorio8421f272006-02-14 18:19:51 +0000181
jcgregorio1eed40f2006-02-15 18:56:46 +0000182 I added distutils based setup.py.
183
Jason R. Coombs43840892011-08-09 10:30:46 -04001840.1 Rev 86
185
jcgregorio2d66d4f2006-02-07 05:34:14 +0000186 Initial Release
187