Changelog¶
Time flies!!
1.0.1 (2015-01-31)¶
Fixes:
- urlfetch.Response.history of a redirected response and its precedent responses should be different.
Improvements:
- Simplified some code.
- Added some tests.
1.0 (2014-03-22)¶
New features:
- Support idna.
- Assignable Session.cookiestring.
Backwards-incompatible changes:
- Remove raw_header and raw_response.
- random_useragent() now takes a single filename as parameter. It used to be a list of filenames.
- No more .title() on request headers’ keys.
- Exceptions are re-designed. socket.timeout now is Timeout, ..., see section Exceptions in Reference for more details.
Fixes:
- Parsing links: If Link header is empty, [] should be returned, not [{'url': ''}].
- Http request’s Host header should include the port. Using netloc as the http host header is wrong, it could include user:pass.
- Redirects: Host in reqheaders should be host:port.
- Streaming decompress not working.
0.6.2 (2014-03-22)¶
Fix:
- Http request’s host header should include the port. Using netloc as the http host header is wrong, it could include user:pass.
0.6.1 (2014-03-15)¶
Fix:
- Parsing links: If Link header is empty, [] should be returned, not [{'url': ''}].
0.6 (2013-08-26)¶
Change:
- Remove lazy response introduced in 0.5.6
- Remove the dump, dumps, load and loads methods of urlfetch.Response
0.5.4.2 (2013-03-31)¶
Feature:
- urlfetch.Response.link, links parsed from HTTP Link header.
Fix:
- Scheme doesn’t correspond to the new location when following redirects.
0.5.4.1 (2013-03-05)¶
Fix:
- urlfetch.random_useragent() raises exception [Errno 2] No such file or directory.
- urlfetch.encode_multipart() doesn’t use isinstance: (object, class-or-type-or-tuple) correctly.
0.5.4 (2013-02-28)¶
Feature:
- HTTP Proxy-Authorization.
Fix:
- Fix docstring typos.
- urlfetch.encode_multipart() should behave the same as urllib.urlencode(query, doseq=1).
- urlfetch.parse_url() should parse urls like they are HTTP urls.
0.5.3 (2013-02-01)¶
Feature:
- NEW urlfetch.Response.status_code, alias of urlfetch.Response.status .
- NEW urlfetch.Response.total_time, urlfetch.Response.raw_header and urlfetch.Response.raw_response.
- Several properties of urlfetch.Response are cached to avoid unnecessary calls, including urlfetch.Response.text, urlfetch.Response.json, urlfetch.Response.headers, urlfetch.Response.cookies, urlfetch.Response.cookiestring, urlfetch.Response.raw_header and urlfetch.Response.raw_response.
Fix:
- urlfetch.mb_code() may silently return incorrect result, since the encode errors are replaced, it should be decode properly and then encode without replace.
0.5.2 (2012-12-24)¶
Feature:
random_useragent() can accept list/tuple/set params and can accept more than one params which specify the paths to check and read from. Below are some examples:
>>> ua = random_useragent('file1') >>> ua = random_useragent('file1', 'file2') >>> ua = random_useragent(['file1', 'file2']) >>> ua = random_useragent(['file1', 'file2'], 'file3')
Fix:
- Possible infinite loop in random_useragent().
0.5.1 (2012-12-05)¶
Fix:
- In some platforms urlfetch.useragents.list located in wrong place.
- random_useragent() will never return the first line.
- Typo in the description of urlfetch.useragents.list (the first line).
0.5.0 (2012-08-23)¶
- Redirects support. Parameter max_redirects specify the max redirects allowed within a request. Default is 0, which means redirects are not allowed.
- Code cleanups
0.4.3 (2012-08-17)¶
- Add params parameter, params is dict or string to attach to request url as querysting.
- Gzip and deflate support.
0.4.2 (2012-07-31)¶
- HTTP(S) proxies support.
0.4.1 (2012-07-04)¶
- Streaming support.
0.4.0 (2012-07-01)¶
- NEW urlfetch.Session to manipulate cookies automatically, share common request headers and cookies.
- NEW urlfetch.Response.cookies and urlfetch.Response.cookiestring to get response cookie dict and cookie string.
0.3.6 (2012-06-08)¶
- Simplify code
- Trace method without data and files, according to RFC2612
- urlencode(data, 1) so that urlencode({'param': [1,2,3]}) => 'param=1¶m=2¶m=3'
0.3.5 (2012-04-24)¶
- Support specifying an IP for the request host, useful for testing API.
0.3.0 (2012-02-28)¶
- Python 3 compatible
0.2.2 (2012-02-22)¶
- Fix bug: file upload: file should always have a filename
0.2.1 (2012-02-22)¶
- More flexible file upload
- Rename fetch2 to request
- Add auth parameter, instead of put basic authentication info in url
0.1.2 (2011-12-07)¶
- Support basic auth
0.1 (2011-12-02)¶
- First release