blob: 20fcbc657b81f1a23a52f5d34360f874ea721a7a [file] [log] [blame]
Joe Gregorioee9ee3c2013-03-06 15:31:15 -050010.8
2 More fixes for the App Engine support.
3
4 Added a new feature that allows you to supply your own provider for the
5 CA_CERTS file. Just create a module named ca_certs_locater that has a method
6 get() that returns the file location of the CA_CERTS file.
7
8 Lots of clean up of the code formatting to make it more consistent.
9
Joe Gregorio76420172012-11-12 14:02:58 -0500100.7.7
11 More fixes for App Engine, now less likely to swallow important exceptions.
12 Adding proxy_info_from_* methods to Python3. Reviewed in https://codereview.appspot.com/6588078/.
13 Added GeoTrust cert
14 Make httplib2.Http() instances pickleable. Reviewed in https://codereview.appspot.com/6506074/
15
16 The following issues have been fixed:
17
18 229 python3 httplib2 clobbers multiple headers of same key
19 230 Expose meaningful exception for App Engine URLFetch ResponseTooLargeError
20 231 Expose App Engine URLFetch DeadlineExceededError for debugging purposes
21
Joe Gregorioa91406d2012-09-11 13:20:44 -0400220.7.6
23 Fixes for App Engine 2.7.
24
Joe Gregorioed72cba2012-08-28 12:19:28 -0400250.7.5
26 Keys are lowercase in a Response object, regardless of how Response object is constructed.
27 Add control so that Authorization: headers aren't forwarded on a 3xx response by default.
28 Set the reason correctly when running on App Engine. Patch from Alain Vongsouvanh. Reviewed in http://codereview.appspot.com/6422051/
29 Fix proxy socks for SSL connections. Fixes issue #199.
30 You can now set httplib2.RETRIES to the number of retries before a request
31 is considered to fail It is set to a default of 2 to mimic the traditional
32 behavior of httplib2.
33
34 The following issues have been addressed:
35
36 223 HEAD requests fail calling the close() method of ResponseDict instance.
37 222 Can't disable cert validation in appengine
38 204 Credentials can leak in HTTP redirects
39 210 Different API between Python 2 and Python 3 version breaks wsgi_intercept
40 214 ValueError on malformated cache entries
41 204 Credentials can leak in HTTP redirects
42
43
Joe Gregoriob850bd02012-03-02 08:37:22 -0800440.7.3
Jason R. Coombs43840892011-08-09 10:30:46 -040045 ProxyInfo objects now can construct themselves from environment
46 variables commonly-used in Unix environments. By default, the Http
47 class will construct a ProxyInfo instance based on these environment
48 variables. To achieve the previous behavior, where environment
49 variables are ignored, pass proxy_info=None to Http().
50
51 The following issues have been addressed:
52
53 Issue 159: automatic detection of proxy configuration.
Joe Gregoriob850bd02012-03-02 08:37:22 -080054 Issue 179: Allow unicode in proxy hostname.
55 Issue 194: Added support for setuptools.
56 Fixes for HTTP CONNECT proxies.
Jason R. Coombs43840892011-08-09 10:30:46 -040057
Joe Gregoriob2cfdf62011-06-16 10:11:13 -0400580.7.1
59 Fix failure to install cacerts.txt for 2.x installs.
60
Joe Gregoriob0c82ca2011-06-13 15:13:11 -0400610.7.0
62 The two major changes in this release are SSL Certificate
63 checking and App Engine support. By default the certificates
64 of an HTTPS connection are checked, but that can be disabled
65 via disable_ssl_certificate_validation. The second change
66 is that on App Engine there is a new connection object
67 that utilizes the urlfetch capabilities on App Engine, including
68 setting timeouts and validating certificates.
69
70 The following issues have been addressed:
71
72 Fixes issue 72. Always lowercase authorization header.
73 Fix issue 47. Redirects that become a GET should not have a body.
74 Fixes issue 19. Set Content-location on redirected HEAD requests
Jason R. Coombs43840892011-08-09 10:30:46 -040075 Fixes issue 139. Redirect with a GET on 302 regardless of the originating method.
76 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 -040077 Add certificate validation. Work initially started by Christoph Kern.
78 Set a version number. Fixes issue # 135.
79 Sync to latest version of socks.py
80 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
81 Uses a custom httplib shim on App Engine to wrap urlfetch, as opposed
82 Add default support for optimistic concurrency on PATCH requests
83 Fixes issue 126. IPv6 under various conditions would fail.
84 Fixes issue 131. Handle socket.timeout's that occur during send.
85 proxy support: degrade gracefully when socket.socket is unavailable
86
87
Joe Gregoriof3116552009-12-28 13:02:42 -0500880.6.0
89
90 The following issues have been addressed:
91
Jason R. Coombs43840892011-08-09 10:30:46 -040092 #51 - Failure to handle server legitimately closing connection before request body is fully sent
93 #77 - Duplicated caching test
Joe Gregoriof3116552009-12-28 13:02:42 -050094 #65 - Transform _normalize_headers into a method of Http class
Jason R. Coombs43840892011-08-09 10:30:46 -040095 #45 - Vary header
96 #73 - All files in Mercurial are executable
97 #81 - Have a useful .hgignore
98 #78 - Add release tags to the Mercurial repository
99 #67 - HEAD requests cause next request to be retried
Joe Gregoriof3116552009-12-28 13:02:42 -0500100
101 Mostly bug fixes, the big enhancement is the addition of proper Vary: header
102 handling. Thanks to Chris Dent for that change.
103
104 The other big change is the build process for distributions so that both python2 and python3
105 are included in the same .tar.gz/.zip file.
106
Joe Gregorio66611ff2009-07-19 01:32:17 -04001070.5.0
108
109 Added Python 3 support
110
111 Fixed the following bugs:
112
Jason R. Coombs43840892011-08-09 10:30:46 -0400113 #12 - Cache-Control: only-if-cached incorrectly does request if item not in cache
Joe Gregorio66611ff2009-07-19 01:32:17 -0400114 #39 - Deprecation warnings in Python 2.6
Joe Gregorio891439e2009-07-28 10:52:36 -0400115 #54 - Http.request fails accesing Google account via http proxy
Joe Gregorio66611ff2009-07-19 01:32:17 -0400116 #56 - Block on response.read() for HEAD requests.
117 #57 - Timeout ignore for Python 2.6
118 #58 - Fixed parsing of Cache-Control: header to make it more robust
119
Joe Gregorio891439e2009-07-28 10:52:36 -0400120 Also fixed a deprecation warning that appeared between Python 3.0 and 3.1.
Joe Gregorio66611ff2009-07-19 01:32:17 -0400121
joe.gregorio5fcc1992007-10-23 15:12:17 +00001220.4.0
jcgregorio14644372007-07-30 14:13:37 +0000123
joe.gregorio5fcc1992007-10-23 15:12:17 +0000124 Added support for proxies if the Socksipy module is installed.
125
Jason R. Coombs43840892011-08-09 10:30:46 -0400126 Fixed bug with some HEAD responses having content-length set to
joe.gregorio5fcc1992007-10-23 15:12:17 +0000127 zero incorrectly.
128
129 Fixed most except's to catch a specific exception.
jcgregorio14644372007-07-30 14:13:37 +0000130
131 Added 'connection_type' parameter to Http.request().
Jason R. Coombs43840892011-08-09 10:30:46 -0400132
joe.gregorio5fcc1992007-10-23 15:12:17 +0000133 The default for 'force_exception_to_status_code' was changed to False. Defaulting
134 to True was causing quite a bit of confusion.
jcgregorio14644372007-07-30 14:13:37 +0000135
136
jcgregorio463a8db2007-03-09 03:27:14 +00001370.3.0
138 Calling Http.request() with a relative URI, as opposed to an absolute URI,
139 will now throw a specific exception.
140
141 Http() now has an additional optional parameter for the socket timeout.
142
143 Exceptions can now be forced into responses. That is, instead of
144 throwing an exception, a good httlib2.Response object is returned
145 that describe the error with an appropriate status code.
146
147 Many improvements to the file cache:
148
Jason R. Coombs43840892011-08-09 10:30:46 -0400149 1. The names in the cache are now much less
jcgregorio463a8db2007-03-09 03:27:14 +0000150 opaque, which should help with debugging.
151
Jason R. Coombs43840892011-08-09 10:30:46 -0400152 2. The disk cache is now Apache mod_asis compatible.
153
jcgregorio463a8db2007-03-09 03:27:14 +0000154 3. A Content-Location: header is supplied and stored in the
155 cache which points to the original requested URI.
156
157 User supplied If-* headers now override httplib2 supplied
158 versions.
159
160 IRIs are now fully supported. Note that they MUST be passed in
161 as unicode objects.
162
163 Http.add_credentials() now takes an optional domain to restrict
164 the credentials to being only used on that domain.
165
Jason R. Coombs43840892011-08-09 10:30:46 -0400166 Added Http.add_certificate() which allows setting
jcgregorio463a8db2007-03-09 03:27:14 +0000167 a key and cert for SSL connnections.
168
169 Many other bugs fixed.
170
171
jcgregorioa0713ab2006-07-01 05:21:34 +00001720.2.0
173 Added support for Google Auth.
jcgregorio2d66d4f2006-02-07 05:34:14 +0000174
Jason R. Coombs43840892011-08-09 10:30:46 -0400175 Added experimental support for HMACDigest.
jcgregorioa0713ab2006-07-01 05:21:34 +0000176
jcgregorio92088922006-07-01 05:53:21 +0000177 Added support for a pluggable caching system. Now supports
178 the old system of using the file system and now memcached.
179
Jason R. Coombs43840892011-08-09 10:30:46 -0400180 Added httplib2.debuglevel which turns on debugging.
jcgregorio2d66d4f2006-02-07 05:34:14 +0000181
jcgregorio92088922006-07-01 05:53:21 +0000182 Change Response._previous to Response.previous.
183
184 Addded Http.follow_all_redirects which forces
Jason R. Coombs43840892011-08-09 10:30:46 -0400185 httplib2 to follow all redirects, as opposed to
jcgregorio92088922006-07-01 05:53:21 +0000186 following only the safe redirects. This makes the
187 GData protocol easier to use.
188
189 All known bugs fixed to date.
190
jcgregorio8421f272006-02-14 18:19:51 +00001910.1.1
jcgregorio2d66d4f2006-02-07 05:34:14 +0000192
jcgregorio4177ca12006-02-16 10:50:58 +0000193 Fixed several bugs raised by James Antill:
jcgregorio2d66d4f2006-02-07 05:34:14 +0000194 1. HEAD didn't get an Accept: header added like GET.
195 2. HEAD requests did not use the cache.
196 3. GET requests with Range: headers would erroneously return a full cached response.
jcgregorio8421f272006-02-14 18:19:51 +0000197 4. Subsequent requests to resources that had timed out would raise an exception.
jcgregorio2d66d4f2006-02-07 05:34:14 +0000198 And one feature request for 'method' to default to GET.
199
Jason R. Coombs43840892011-08-09 10:30:46 -0400200 Xavier Verges Farrero supplied what I needed to make the
jcgregorio4177ca12006-02-16 10:50:58 +0000201 library work with Python 2.3.
jcgregorio8421f272006-02-14 18:19:51 +0000202
jcgregorio1eed40f2006-02-15 18:56:46 +0000203 I added distutils based setup.py.
204
Jason R. Coombs43840892011-08-09 10:30:46 -04002050.1 Rev 86
206
jcgregorio2d66d4f2006-02-07 05:34:14 +0000207 Initial Release
208