HISTORY.rst 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156
  1. .. :changelog:
  2. Release History
  3. ---------------
  4. 2.10.0 (04-29-2016)
  5. +++++++++++++++++++
  6. **New Features**
  7. - SOCKS Proxy Support! (requires PySocks; $ pip install requests[socks])
  8. **Miscellaneous**
  9. - Updated bundled urllib3 to 1.15.1.
  10. 2.9.2 (04-29-2016)
  11. ++++++++++++++++++
  12. **Improvements**
  13. - Change built-in CaseInsensitiveDict (used for headers) to use OrderedDict
  14. as its underlying datastore.
  15. **Bugfixes**
  16. - Don't use redirect_cache if allow_redirects=False
  17. - When passed objects that throw exceptions from ``tell()``, send them via
  18. chunked transfer encoding instead of failing.
  19. - Raise a ProxyError for proxy related connection issues.
  20. 2.9.1 (2015-12-21)
  21. ++++++++++++++++++
  22. **Bugfixes**
  23. - Resolve regression introduced in 2.9.0 that made it impossible to send binary
  24. strings as bodies in Python 3.
  25. - Fixed errors when calculating cookie expiration dates in certain locales.
  26. **Miscellaneous**
  27. - Updated bundled urllib3 to 1.13.1.
  28. 2.9.0 (2015-12-15)
  29. ++++++++++++++++++
  30. **Minor Improvements** (Backwards compatible)
  31. - The ``verify`` keyword argument now supports being passed a path to a
  32. directory of CA certificates, not just a single-file bundle.
  33. - Warnings are now emitted when sending files opened in text mode.
  34. - Added the 511 Network Authentication Required status code to the status code
  35. registry.
  36. **Bugfixes**
  37. - For file-like objects that are not seeked to the very beginning, we now
  38. send the content length for the number of bytes we will actually read, rather
  39. than the total size of the file, allowing partial file uploads.
  40. - When uploading file-like objects, if they are empty or have no obvious
  41. content length we set ``Transfer-Encoding: chunked`` rather than
  42. ``Content-Length: 0``.
  43. - We correctly receive the response in buffered mode when uploading chunked
  44. bodies.
  45. - We now handle being passed a query string as a bytestring on Python 3, by
  46. decoding it as UTF-8.
  47. - Sessions are now closed in all cases (exceptional and not) when using the
  48. functional API rather than leaking and waiting for the garbage collector to
  49. clean them up.
  50. - Correctly handle digest auth headers with a malformed ``qop`` directive that
  51. contains no token, by treating it the same as if no ``qop`` directive was
  52. provided at all.
  53. - Minor performance improvements when removing specific cookies by name.
  54. **Miscellaneous**
  55. - Updated urllib3 to 1.13.
  56. 2.8.1 (2015-10-13)
  57. ++++++++++++++++++
  58. **Bugfixes**
  59. - Update certificate bundle to match ``certifi`` 2015.9.6.2's weak certificate
  60. bundle.
  61. - Fix a bug in 2.8.0 where requests would raise ``ConnectTimeout`` instead of
  62. ``ConnectionError``
  63. - When using the PreparedRequest flow, requests will now correctly respect the
  64. ``json`` parameter. Broken in 2.8.0.
  65. - When using the PreparedRequest flow, requests will now correctly handle a
  66. Unicode-string method name on Python 2. Broken in 2.8.0.
  67. 2.8.0 (2015-10-05)
  68. ++++++++++++++++++
  69. **Minor Improvements** (Backwards Compatible)
  70. - Requests now supports per-host proxies. This allows the ``proxies``
  71. dictionary to have entries of the form
  72. ``{'<scheme>://<hostname>': '<proxy>'}``. Host-specific proxies will be used
  73. in preference to the previously-supported scheme-specific ones, but the
  74. previous syntax will continue to work.
  75. - ``Response.raise_for_status`` now prints the URL that failed as part of the
  76. exception message.
  77. - ``requests.utils.get_netrc_auth`` now takes an ``raise_errors`` kwarg,
  78. defaulting to ``False``. When ``True``, errors parsing ``.netrc`` files cause
  79. exceptions to be thrown.
  80. - Change to bundled projects import logic to make it easier to unbundle
  81. requests downstream.
  82. - Changed the default User-Agent string to avoid leaking data on Linux: now
  83. contains only the requests version.
  84. **Bugfixes**
  85. - The ``json`` parameter to ``post()`` and friends will now only be used if
  86. neither ``data`` nor ``files`` are present, consistent with the
  87. documentation.
  88. - We now ignore empty fields in the ``NO_PROXY`` environment variable.
  89. - Fixed problem where ``httplib.BadStatusLine`` would get raised if combining
  90. ``stream=True`` with ``contextlib.closing``.
  91. - Prevented bugs where we would attempt to return the same connection back to
  92. the connection pool twice when sending a Chunked body.
  93. - Miscellaneous minor internal changes.
  94. - Digest Auth support is now thread safe.
  95. **Updates**
  96. - Updated urllib3 to 1.12.
  97. 2.7.0 (2015-05-03)
  98. ++++++++++++++++++
  99. This is the first release that follows our new release process. For more, see
  100. `our documentation
  101. <http://docs.python-requests.org/en/latest/community/release-process/>`_.
  102. **Bugfixes**
  103. - Updated urllib3 to 1.10.4, resolving several bugs involving chunked transfer
  104. encoding and response framing.
  105. 2.6.2 (2015-04-23)
  106. ++++++++++++++++++
  107. **Bugfixes**
  108. - Fix regression where compressed data that was sent as chunked data was not
  109. properly decompressed. (#2561)
  110. 2.6.1 (2015-04-22)
  111. ++++++++++++++++++
  112. **Bugfixes**
  113. - Remove VendorAlias import machinery introduced in v2.5.2.
  114. - Simplify the PreparedRequest.prepare API: We no longer require the user to
  115. pass an empty list to the hooks keyword argument. (c.f. #2552)
  116. - Resolve redirects now receives and forwards all of the original arguments to
  117. the adapter. (#2503)
  118. - Handle UnicodeDecodeErrors when trying to deal with a unicode URL that
  119. cannot be encoded in ASCII. (#2540)
  120. - Populate the parsed path of the URI field when performing Digest
  121. Authentication. (#2426)
  122. - Copy a PreparedRequest's CookieJar more reliably when it is not an instance
  123. of RequestsCookieJar. (#2527)
  124. 2.6.0 (2015-03-14)
  125. ++++++++++++++++++
  126. **Bugfixes**
  127. - CVE-2015-2296: Fix handling of cookies on redirect. Previously a cookie
  128. without a host value set would use the hostname for the redirected URL
  129. exposing requests users to session fixation attacks and potentially cookie
  130. stealing. This was disclosed privately by Matthew Daley of
  131. `BugFuzz <https://bugfuzz.com>`_. This affects all versions of requests from
  132. v2.1.0 to v2.5.3 (inclusive on both ends).
  133. - Fix error when requests is an ``install_requires`` dependency and ``python
  134. setup.py test`` is run. (#2462)
  135. - Fix error when urllib3 is unbundled and requests continues to use the
  136. vendored import location.
  137. - Include fixes to ``urllib3``'s header handling.
  138. - Requests' handling of unvendored dependencies is now more restrictive.
  139. **Features and Improvements**
  140. - Support bytearrays when passed as parameters in the ``files`` argument.
  141. (#2468)
  142. - Avoid data duplication when creating a request with ``str``, ``bytes``, or
  143. ``bytearray`` input to the ``files`` argument.
  144. 2.5.3 (2015-02-24)
  145. ++++++++++++++++++
  146. **Bugfixes**
  147. - Revert changes to our vendored certificate bundle. For more context see
  148. (#2455, #2456, and http://bugs.python.org/issue23476)
  149. 2.5.2 (2015-02-23)
  150. ++++++++++++++++++
  151. **Features and Improvements**
  152. - Add sha256 fingerprint support. (`shazow/urllib3#540`_)
  153. - Improve the performance of headers. (`shazow/urllib3#544`_)
  154. **Bugfixes**
  155. - Copy pip's import machinery. When downstream redistributors remove
  156. requests.packages.urllib3 the import machinery will continue to let those
  157. same symbols work. Example usage in requests' documentation and 3rd-party
  158. libraries relying on the vendored copies of urllib3 will work without having
  159. to fallback to the system urllib3.
  160. - Attempt to quote parts of the URL on redirect if unquoting and then quoting
  161. fails. (#2356)
  162. - Fix filename type check for multipart form-data uploads. (#2411)
  163. - Properly handle the case where a server issuing digest authentication
  164. challenges provides both auth and auth-int qop-values. (#2408)
  165. - Fix a socket leak. (`shazow/urllib3#549`_)
  166. - Fix multiple ``Set-Cookie`` headers properly. (`shazow/urllib3#534`_)
  167. - Disable the built-in hostname verification. (`shazow/urllib3#526`_)
  168. - Fix the behaviour of decoding an exhausted stream. (`shazow/urllib3#535`_)
  169. **Security**
  170. - Pulled in an updated ``cacert.pem``.
  171. - Drop RC4 from the default cipher list. (`shazow/urllib3#551`_)
  172. .. _shazow/urllib3#551: https://github.com/shazow/urllib3/pull/551
  173. .. _shazow/urllib3#549: https://github.com/shazow/urllib3/pull/549
  174. .. _shazow/urllib3#544: https://github.com/shazow/urllib3/pull/544
  175. .. _shazow/urllib3#540: https://github.com/shazow/urllib3/pull/540
  176. .. _shazow/urllib3#535: https://github.com/shazow/urllib3/pull/535
  177. .. _shazow/urllib3#534: https://github.com/shazow/urllib3/pull/534
  178. .. _shazow/urllib3#526: https://github.com/shazow/urllib3/pull/526
  179. 2.5.1 (2014-12-23)
  180. ++++++++++++++++++
  181. **Behavioural Changes**
  182. - Only catch HTTPErrors in raise_for_status (#2382)
  183. **Bugfixes**
  184. - Handle LocationParseError from urllib3 (#2344)
  185. - Handle file-like object filenames that are not strings (#2379)
  186. - Unbreak HTTPDigestAuth handler. Allow new nonces to be negotiated (#2389)
  187. 2.5.0 (2014-12-01)
  188. ++++++++++++++++++
  189. **Improvements**
  190. - Allow usage of urllib3's Retry object with HTTPAdapters (#2216)
  191. - The ``iter_lines`` method on a response now accepts a delimiter with which
  192. to split the content (#2295)
  193. **Behavioural Changes**
  194. - Add deprecation warnings to functions in requests.utils that will be removed
  195. in 3.0 (#2309)
  196. - Sessions used by the functional API are always closed (#2326)
  197. - Restrict requests to HTTP/1.1 and HTTP/1.0 (stop accepting HTTP/0.9) (#2323)
  198. **Bugfixes**
  199. - Only parse the URL once (#2353)
  200. - Allow Content-Length header to always be overridden (#2332)
  201. - Properly handle files in HTTPDigestAuth (#2333)
  202. - Cap redirect_cache size to prevent memory abuse (#2299)
  203. - Fix HTTPDigestAuth handling of redirects after authenticating successfully
  204. (#2253)
  205. - Fix crash with custom method parameter to Session.request (#2317)
  206. - Fix how Link headers are parsed using the regular expression library (#2271)
  207. **Documentation**
  208. - Add more references for interlinking (#2348)
  209. - Update CSS for theme (#2290)
  210. - Update width of buttons and sidebar (#2289)
  211. - Replace references of Gittip with Gratipay (#2282)
  212. - Add link to changelog in sidebar (#2273)
  213. 2.4.3 (2014-10-06)
  214. ++++++++++++++++++
  215. **Bugfixes**
  216. - Unicode URL improvements for Python 2.
  217. - Re-order JSON param for backwards compat.
  218. - Automatically defrag authentication schemes from host/pass URIs. (`#2249 <https://github.com/kennethreitz/requests/issues/2249>`_)
  219. 2.4.2 (2014-10-05)
  220. ++++++++++++++++++
  221. **Improvements**
  222. - FINALLY! Add json parameter for uploads! (`#2258 <https://github.com/kennethreitz/requests/pull/2258>`_)
  223. - Support for bytestring URLs on Python 3.x (`#2238 <https://github.com/kennethreitz/requests/pull/2238>`_)
  224. **Bugfixes**
  225. - Avoid getting stuck in a loop (`#2244 <https://github.com/kennethreitz/requests/pull/2244>`_)
  226. - Multiple calls to iter* fail with unhelpful error. (`#2240 <https://github.com/kennethreitz/requests/issues/2240>`_, `#2241 <https://github.com/kennethreitz/requests/issues/2241>`_)
  227. **Documentation**
  228. - Correct redirection introduction (`#2245 <https://github.com/kennethreitz/requests/pull/2245/>`_)
  229. - Added example of how to send multiple files in one request. (`#2227 <https://github.com/kennethreitz/requests/pull/2227/>`_)
  230. - Clarify how to pass a custom set of CAs (`#2248 <https://github.com/kennethreitz/requests/pull/2248/>`_)
  231. 2.4.1 (2014-09-09)
  232. ++++++++++++++++++
  233. - Now has a "security" package extras set, ``$ pip install requests[security]``
  234. - Requests will now use Certifi if it is available.
  235. - Capture and re-raise urllib3 ProtocolError
  236. - Bugfix for responses that attempt to redirect to themselves forever (wtf?).
  237. 2.4.0 (2014-08-29)
  238. ++++++++++++++++++
  239. **Behavioral Changes**
  240. - ``Connection: keep-alive`` header is now sent automatically.
  241. **Improvements**
  242. - Support for connect timeouts! Timeout now accepts a tuple (connect, read) which is used to set individual connect and read timeouts.
  243. - Allow copying of PreparedRequests without headers/cookies.
  244. - Updated bundled urllib3 version.
  245. - Refactored settings loading from environment -- new `Session.merge_environment_settings`.
  246. - Handle socket errors in iter_content.
  247. 2.3.0 (2014-05-16)
  248. ++++++++++++++++++
  249. **API Changes**
  250. - New ``Response`` property ``is_redirect``, which is true when the
  251. library could have processed this response as a redirection (whether
  252. or not it actually did).
  253. - The ``timeout`` parameter now affects requests with both ``stream=True`` and
  254. ``stream=False`` equally.
  255. - The change in v2.0.0 to mandate explicit proxy schemes has been reverted.
  256. Proxy schemes now default to ``http://``.
  257. - The ``CaseInsensitiveDict`` used for HTTP headers now behaves like a normal
  258. dictionary when references as string or viewed in the interpreter.
  259. **Bugfixes**
  260. - No longer expose Authorization or Proxy-Authorization headers on redirect.
  261. Fix CVE-2014-1829 and CVE-2014-1830 respectively.
  262. - Authorization is re-evaluated each redirect.
  263. - On redirect, pass url as native strings.
  264. - Fall-back to autodetected encoding for JSON when Unicode detection fails.
  265. - Headers set to ``None`` on the ``Session`` are now correctly not sent.
  266. - Correctly honor ``decode_unicode`` even if it wasn't used earlier in the same
  267. response.
  268. - Stop advertising ``compress`` as a supported Content-Encoding.
  269. - The ``Response.history`` parameter is now always a list.
  270. - Many, many ``urllib3`` bugfixes.
  271. 2.2.1 (2014-01-23)
  272. ++++++++++++++++++
  273. **Bugfixes**
  274. - Fixes incorrect parsing of proxy credentials that contain a literal or encoded '#' character.
  275. - Assorted urllib3 fixes.
  276. 2.2.0 (2014-01-09)
  277. ++++++++++++++++++
  278. **API Changes**
  279. - New exception: ``ContentDecodingError``. Raised instead of ``urllib3``
  280. ``DecodeError`` exceptions.
  281. **Bugfixes**
  282. - Avoid many many exceptions from the buggy implementation of ``proxy_bypass`` on OS X in Python 2.6.
  283. - Avoid crashing when attempting to get authentication credentials from ~/.netrc when running as a user without a home directory.
  284. - Use the correct pool size for pools of connections to proxies.
  285. - Fix iteration of ``CookieJar`` objects.
  286. - Ensure that cookies are persisted over redirect.
  287. - Switch back to using chardet, since it has merged with charade.
  288. 2.1.0 (2013-12-05)
  289. ++++++++++++++++++
  290. - Updated CA Bundle, of course.
  291. - Cookies set on individual Requests through a ``Session`` (e.g. via ``Session.get()``) are no longer persisted to the ``Session``.
  292. - Clean up connections when we hit problems during chunked upload, rather than leaking them.
  293. - Return connections to the pool when a chunked upload is successful, rather than leaking it.
  294. - Match the HTTPbis recommendation for HTTP 301 redirects.
  295. - Prevent hanging when using streaming uploads and Digest Auth when a 401 is received.
  296. - Values of headers set by Requests are now always the native string type.
  297. - Fix previously broken SNI support.
  298. - Fix accessing HTTP proxies using proxy authentication.
  299. - Unencode HTTP Basic usernames and passwords extracted from URLs.
  300. - Support for IP address ranges for no_proxy environment variable
  301. - Parse headers correctly when users override the default ``Host:`` header.
  302. - Avoid munging the URL in case of case-sensitive servers.
  303. - Looser URL handling for non-HTTP/HTTPS urls.
  304. - Accept unicode methods in Python 2.6 and 2.7.
  305. - More resilient cookie handling.
  306. - Make ``Response`` objects pickleable.
  307. - Actually added MD5-sess to Digest Auth instead of pretending to like last time.
  308. - Updated internal urllib3.
  309. - Fixed @Lukasa's lack of taste.
  310. 2.0.1 (2013-10-24)
  311. ++++++++++++++++++
  312. - Updated included CA Bundle with new mistrusts and automated process for the future
  313. - Added MD5-sess to Digest Auth
  314. - Accept per-file headers in multipart file POST messages.
  315. - Fixed: Don't send the full URL on CONNECT messages.
  316. - Fixed: Correctly lowercase a redirect scheme.
  317. - Fixed: Cookies not persisted when set via functional API.
  318. - Fixed: Translate urllib3 ProxyError into a requests ProxyError derived from ConnectionError.
  319. - Updated internal urllib3 and chardet.
  320. 2.0.0 (2013-09-24)
  321. ++++++++++++++++++
  322. **API Changes:**
  323. - Keys in the Headers dictionary are now native strings on all Python versions,
  324. i.e. bytestrings on Python 2, unicode on Python 3.
  325. - Proxy URLs now *must* have an explicit scheme. A ``MissingSchema`` exception
  326. will be raised if they don't.
  327. - Timeouts now apply to read time if ``Stream=False``.
  328. - ``RequestException`` is now a subclass of ``IOError``, not ``RuntimeError``.
  329. - Added new method to ``PreparedRequest`` objects: ``PreparedRequest.copy()``.
  330. - Added new method to ``Session`` objects: ``Session.update_request()``. This
  331. method updates a ``Request`` object with the data (e.g. cookies) stored on
  332. the ``Session``.
  333. - Added new method to ``Session`` objects: ``Session.prepare_request()``. This
  334. method updates and prepares a ``Request`` object, and returns the
  335. corresponding ``PreparedRequest`` object.
  336. - Added new method to ``HTTPAdapter`` objects: ``HTTPAdapter.proxy_headers()``.
  337. This should not be called directly, but improves the subclass interface.
  338. - ``httplib.IncompleteRead`` exceptions caused by incorrect chunked encoding
  339. will now raise a Requests ``ChunkedEncodingError`` instead.
  340. - Invalid percent-escape sequences now cause a Requests ``InvalidURL``
  341. exception to be raised.
  342. - HTTP 208 no longer uses reason phrase ``"im_used"``. Correctly uses
  343. ``"already_reported"``.
  344. - HTTP 226 reason added (``"im_used"``).
  345. **Bugfixes:**
  346. - Vastly improved proxy support, including the CONNECT verb. Special thanks to
  347. the many contributors who worked towards this improvement.
  348. - Cookies are now properly managed when 401 authentication responses are
  349. received.
  350. - Chunked encoding fixes.
  351. - Support for mixed case schemes.
  352. - Better handling of streaming downloads.
  353. - Retrieve environment proxies from more locations.
  354. - Minor cookies fixes.
  355. - Improved redirect behaviour.
  356. - Improved streaming behaviour, particularly for compressed data.
  357. - Miscellaneous small Python 3 text encoding bugs.
  358. - ``.netrc`` no longer overrides explicit auth.
  359. - Cookies set by hooks are now correctly persisted on Sessions.
  360. - Fix problem with cookies that specify port numbers in their host field.
  361. - ``BytesIO`` can be used to perform streaming uploads.
  362. - More generous parsing of the ``no_proxy`` environment variable.
  363. - Non-string objects can be passed in data values alongside files.
  364. 1.2.3 (2013-05-25)
  365. ++++++++++++++++++
  366. - Simple packaging fix
  367. 1.2.2 (2013-05-23)
  368. ++++++++++++++++++
  369. - Simple packaging fix
  370. 1.2.1 (2013-05-20)
  371. ++++++++++++++++++
  372. - 301 and 302 redirects now change the verb to GET for all verbs, not just
  373. POST, improving browser compatibility.
  374. - Python 3.3.2 compatibility
  375. - Always percent-encode location headers
  376. - Fix connection adapter matching to be most-specific first
  377. - new argument to the default connection adapter for passing a block argument
  378. - prevent a KeyError when there's no link headers
  379. 1.2.0 (2013-03-31)
  380. ++++++++++++++++++
  381. - Fixed cookies on sessions and on requests
  382. - Significantly change how hooks are dispatched - hooks now receive all the
  383. arguments specified by the user when making a request so hooks can make a
  384. secondary request with the same parameters. This is especially necessary for
  385. authentication handler authors
  386. - certifi support was removed
  387. - Fixed bug where using OAuth 1 with body ``signature_type`` sent no data
  388. - Major proxy work thanks to @Lukasa including parsing of proxy authentication
  389. from the proxy url
  390. - Fix DigestAuth handling too many 401s
  391. - Update vendored urllib3 to include SSL bug fixes
  392. - Allow keyword arguments to be passed to ``json.loads()`` via the
  393. ``Response.json()`` method
  394. - Don't send ``Content-Length`` header by default on ``GET`` or ``HEAD``
  395. requests
  396. - Add ``elapsed`` attribute to ``Response`` objects to time how long a request
  397. took.
  398. - Fix ``RequestsCookieJar``
  399. - Sessions and Adapters are now picklable, i.e., can be used with the
  400. multiprocessing library
  401. - Update charade to version 1.0.3
  402. The change in how hooks are dispatched will likely cause a great deal of
  403. issues.
  404. 1.1.0 (2013-01-10)
  405. ++++++++++++++++++
  406. - CHUNKED REQUESTS
  407. - Support for iterable response bodies
  408. - Assume servers persist redirect params
  409. - Allow explicit content types to be specified for file data
  410. - Make merge_kwargs case-insensitive when looking up keys
  411. 1.0.3 (2012-12-18)
  412. ++++++++++++++++++
  413. - Fix file upload encoding bug
  414. - Fix cookie behavior
  415. 1.0.2 (2012-12-17)
  416. ++++++++++++++++++
  417. - Proxy fix for HTTPAdapter.
  418. 1.0.1 (2012-12-17)
  419. ++++++++++++++++++
  420. - Cert verification exception bug.
  421. - Proxy fix for HTTPAdapter.
  422. 1.0.0 (2012-12-17)
  423. ++++++++++++++++++
  424. - Massive Refactor and Simplification
  425. - Switch to Apache 2.0 license
  426. - Swappable Connection Adapters
  427. - Mountable Connection Adapters
  428. - Mutable ProcessedRequest chain
  429. - /s/prefetch/stream
  430. - Removal of all configuration
  431. - Standard library logging
  432. - Make Response.json() callable, not property.
  433. - Usage of new charade project, which provides python 2 and 3 simultaneous chardet.
  434. - Removal of all hooks except 'response'
  435. - Removal of all authentication helpers (OAuth, Kerberos)
  436. This is not a backwards compatible change.
  437. 0.14.2 (2012-10-27)
  438. +++++++++++++++++++
  439. - Improved mime-compatible JSON handling
  440. - Proxy fixes
  441. - Path hack fixes
  442. - Case-Insensitive Content-Encoding headers
  443. - Support for CJK parameters in form posts
  444. 0.14.1 (2012-10-01)
  445. +++++++++++++++++++
  446. - Python 3.3 Compatibility
  447. - Simply default accept-encoding
  448. - Bugfixes
  449. 0.14.0 (2012-09-02)
  450. ++++++++++++++++++++
  451. - No more iter_content errors if already downloaded.
  452. 0.13.9 (2012-08-25)
  453. +++++++++++++++++++
  454. - Fix for OAuth + POSTs
  455. - Remove exception eating from dispatch_hook
  456. - General bugfixes
  457. 0.13.8 (2012-08-21)
  458. +++++++++++++++++++
  459. - Incredible Link header support :)
  460. 0.13.7 (2012-08-19)
  461. +++++++++++++++++++
  462. - Support for (key, value) lists everywhere.
  463. - Digest Authentication improvements.
  464. - Ensure proxy exclusions work properly.
  465. - Clearer UnicodeError exceptions.
  466. - Automatic casting of URLs to strings (fURL and such)
  467. - Bugfixes.
  468. 0.13.6 (2012-08-06)
  469. +++++++++++++++++++
  470. - Long awaited fix for hanging connections!
  471. 0.13.5 (2012-07-27)
  472. +++++++++++++++++++
  473. - Packaging fix
  474. 0.13.4 (2012-07-27)
  475. +++++++++++++++++++
  476. - GSSAPI/Kerberos authentication!
  477. - App Engine 2.7 Fixes!
  478. - Fix leaking connections (from urllib3 update)
  479. - OAuthlib path hack fix
  480. - OAuthlib URL parameters fix.
  481. 0.13.3 (2012-07-12)
  482. +++++++++++++++++++
  483. - Use simplejson if available.
  484. - Do not hide SSLErrors behind Timeouts.
  485. - Fixed param handling with urls containing fragments.
  486. - Significantly improved information in User Agent.
  487. - client certificates are ignored when verify=False
  488. 0.13.2 (2012-06-28)
  489. +++++++++++++++++++
  490. - Zero dependencies (once again)!
  491. - New: Response.reason
  492. - Sign querystring parameters in OAuth 1.0
  493. - Client certificates no longer ignored when verify=False
  494. - Add openSUSE certificate support
  495. 0.13.1 (2012-06-07)
  496. +++++++++++++++++++
  497. - Allow passing a file or file-like object as data.
  498. - Allow hooks to return responses that indicate errors.
  499. - Fix Response.text and Response.json for body-less responses.
  500. 0.13.0 (2012-05-29)
  501. +++++++++++++++++++
  502. - Removal of Requests.async in favor of `grequests <https://github.com/kennethreitz/grequests>`_
  503. - Allow disabling of cookie persistence.
  504. - New implementation of safe_mode
  505. - cookies.get now supports default argument
  506. - Session cookies not saved when Session.request is called with return_response=False
  507. - Env: no_proxy support.
  508. - RequestsCookieJar improvements.
  509. - Various bug fixes.
  510. 0.12.1 (2012-05-08)
  511. +++++++++++++++++++
  512. - New ``Response.json`` property.
  513. - Ability to add string file uploads.
  514. - Fix out-of-range issue with iter_lines.
  515. - Fix iter_content default size.
  516. - Fix POST redirects containing files.
  517. 0.12.0 (2012-05-02)
  518. +++++++++++++++++++
  519. - EXPERIMENTAL OAUTH SUPPORT!
  520. - Proper CookieJar-backed cookies interface with awesome dict-like interface.
  521. - Speed fix for non-iterated content chunks.
  522. - Move ``pre_request`` to a more usable place.
  523. - New ``pre_send`` hook.
  524. - Lazily encode data, params, files.
  525. - Load system Certificate Bundle if ``certify`` isn't available.
  526. - Cleanups, fixes.
  527. 0.11.2 (2012-04-22)
  528. +++++++++++++++++++
  529. - Attempt to use the OS's certificate bundle if ``certifi`` isn't available.
  530. - Infinite digest auth redirect fix.
  531. - Multi-part file upload improvements.
  532. - Fix decoding of invalid %encodings in URLs.
  533. - If there is no content in a response don't throw an error the second time that content is attempted to be read.
  534. - Upload data on redirects.
  535. 0.11.1 (2012-03-30)
  536. +++++++++++++++++++
  537. * POST redirects now break RFC to do what browsers do: Follow up with a GET.
  538. * New ``strict_mode`` configuration to disable new redirect behavior.
  539. 0.11.0 (2012-03-14)
  540. +++++++++++++++++++
  541. * Private SSL Certificate support
  542. * Remove select.poll from Gevent monkeypatching
  543. * Remove redundant generator for chunked transfer encoding
  544. * Fix: Response.ok raises Timeout Exception in safe_mode
  545. 0.10.8 (2012-03-09)
  546. +++++++++++++++++++
  547. * Generate chunked ValueError fix
  548. * Proxy configuration by environment variables
  549. * Simplification of iter_lines.
  550. * New `trust_env` configuration for disabling system/environment hints.
  551. * Suppress cookie errors.
  552. 0.10.7 (2012-03-07)
  553. +++++++++++++++++++
  554. * `encode_uri` = False
  555. 0.10.6 (2012-02-25)
  556. +++++++++++++++++++
  557. * Allow '=' in cookies.
  558. 0.10.5 (2012-02-25)
  559. +++++++++++++++++++
  560. * Response body with 0 content-length fix.
  561. * New async.imap.
  562. * Don't fail on netrc.
  563. 0.10.4 (2012-02-20)
  564. +++++++++++++++++++
  565. * Honor netrc.
  566. 0.10.3 (2012-02-20)
  567. +++++++++++++++++++
  568. * HEAD requests don't follow redirects anymore.
  569. * raise_for_status() doesn't raise for 3xx anymore.
  570. * Make Session objects picklable.
  571. * ValueError for invalid schema URLs.
  572. 0.10.2 (2012-01-15)
  573. +++++++++++++++++++
  574. * Vastly improved URL quoting.
  575. * Additional allowed cookie key values.
  576. * Attempted fix for "Too many open files" Error
  577. * Replace unicode errors on first pass, no need for second pass.
  578. * Append '/' to bare-domain urls before query insertion.
  579. * Exceptions now inherit from RuntimeError.
  580. * Binary uploads + auth fix.
  581. * Bugfixes.
  582. 0.10.1 (2012-01-23)
  583. +++++++++++++++++++
  584. * PYTHON 3 SUPPORT!
  585. * Dropped 2.5 Support. (*Backwards Incompatible*)
  586. 0.10.0 (2012-01-21)
  587. +++++++++++++++++++
  588. * ``Response.content`` is now bytes-only. (*Backwards Incompatible*)
  589. * New ``Response.text`` is unicode-only.
  590. * If no ``Response.encoding`` is specified and ``chardet`` is available, ``Response.text`` will guess an encoding.
  591. * Default to ISO-8859-1 (Western) encoding for "text" subtypes.
  592. * Removal of `decode_unicode`. (*Backwards Incompatible*)
  593. * New multiple-hooks system.
  594. * New ``Response.register_hook`` for registering hooks within the pipeline.
  595. * ``Response.url`` is now Unicode.
  596. 0.9.3 (2012-01-18)
  597. ++++++++++++++++++
  598. * SSL verify=False bugfix (apparent on windows machines).
  599. 0.9.2 (2012-01-18)
  600. ++++++++++++++++++
  601. * Asynchronous async.send method.
  602. * Support for proper chunk streams with boundaries.
  603. * session argument for Session classes.
  604. * Print entire hook tracebacks, not just exception instance.
  605. * Fix response.iter_lines from pending next line.
  606. * Fix but in HTTP-digest auth w/ URI having query strings.
  607. * Fix in Event Hooks section.
  608. * Urllib3 update.
  609. 0.9.1 (2012-01-06)
  610. ++++++++++++++++++
  611. * danger_mode for automatic Response.raise_for_status()
  612. * Response.iter_lines refactor
  613. 0.9.0 (2011-12-28)
  614. ++++++++++++++++++
  615. * verify ssl is default.
  616. 0.8.9 (2011-12-28)
  617. ++++++++++++++++++
  618. * Packaging fix.
  619. 0.8.8 (2011-12-28)
  620. ++++++++++++++++++
  621. * SSL CERT VERIFICATION!
  622. * Release of Cerifi: Mozilla's cert list.
  623. * New 'verify' argument for SSL requests.
  624. * Urllib3 update.
  625. 0.8.7 (2011-12-24)
  626. ++++++++++++++++++
  627. * iter_lines last-line truncation fix
  628. * Force safe_mode for async requests
  629. * Handle safe_mode exceptions more consistently
  630. * Fix iteration on null responses in safe_mode
  631. 0.8.6 (2011-12-18)
  632. ++++++++++++++++++
  633. * Socket timeout fixes.
  634. * Proxy Authorization support.
  635. 0.8.5 (2011-12-14)
  636. ++++++++++++++++++
  637. * Response.iter_lines!
  638. 0.8.4 (2011-12-11)
  639. ++++++++++++++++++
  640. * Prefetch bugfix.
  641. * Added license to installed version.
  642. 0.8.3 (2011-11-27)
  643. ++++++++++++++++++
  644. * Converted auth system to use simpler callable objects.
  645. * New session parameter to API methods.
  646. * Display full URL while logging.
  647. 0.8.2 (2011-11-19)
  648. ++++++++++++++++++
  649. * New Unicode decoding system, based on over-ridable `Response.encoding`.
  650. * Proper URL slash-quote handling.
  651. * Cookies with ``[``, ``]``, and ``_`` allowed.
  652. 0.8.1 (2011-11-15)
  653. ++++++++++++++++++
  654. * URL Request path fix
  655. * Proxy fix.
  656. * Timeouts fix.
  657. 0.8.0 (2011-11-13)
  658. ++++++++++++++++++
  659. * Keep-alive support!
  660. * Complete removal of Urllib2
  661. * Complete removal of Poster
  662. * Complete removal of CookieJars
  663. * New ConnectionError raising
  664. * Safe_mode for error catching
  665. * prefetch parameter for request methods
  666. * OPTION method
  667. * Async pool size throttling
  668. * File uploads send real names
  669. * Vendored in urllib3
  670. 0.7.6 (2011-11-07)
  671. ++++++++++++++++++
  672. * Digest authentication bugfix (attach query data to path)
  673. 0.7.5 (2011-11-04)
  674. ++++++++++++++++++
  675. * Response.content = None if there was an invalid response.
  676. * Redirection auth handling.
  677. 0.7.4 (2011-10-26)
  678. ++++++++++++++++++
  679. * Session Hooks fix.
  680. 0.7.3 (2011-10-23)
  681. ++++++++++++++++++
  682. * Digest Auth fix.
  683. 0.7.2 (2011-10-23)
  684. ++++++++++++++++++
  685. * PATCH Fix.
  686. 0.7.1 (2011-10-23)
  687. ++++++++++++++++++
  688. * Move away from urllib2 authentication handling.
  689. * Fully Remove AuthManager, AuthObject, &c.
  690. * New tuple-based auth system with handler callbacks.
  691. 0.7.0 (2011-10-22)
  692. ++++++++++++++++++
  693. * Sessions are now the primary interface.
  694. * Deprecated InvalidMethodException.
  695. * PATCH fix.
  696. * New config system (no more global settings).
  697. 0.6.6 (2011-10-19)
  698. ++++++++++++++++++
  699. * Session parameter bugfix (params merging).
  700. 0.6.5 (2011-10-18)
  701. ++++++++++++++++++
  702. * Offline (fast) test suite.
  703. * Session dictionary argument merging.
  704. 0.6.4 (2011-10-13)
  705. ++++++++++++++++++
  706. * Automatic decoding of unicode, based on HTTP Headers.
  707. * New ``decode_unicode`` setting.
  708. * Removal of ``r.read/close`` methods.
  709. * New ``r.faw`` interface for advanced response usage.*
  710. * Automatic expansion of parameterized headers.
  711. 0.6.3 (2011-10-13)
  712. ++++++++++++++++++
  713. * Beautiful ``requests.async`` module, for making async requests w/ gevent.
  714. 0.6.2 (2011-10-09)
  715. ++++++++++++++++++
  716. * GET/HEAD obeys allow_redirects=False.
  717. 0.6.1 (2011-08-20)
  718. ++++++++++++++++++
  719. * Enhanced status codes experience ``\o/``
  720. * Set a maximum number of redirects (``settings.max_redirects``)
  721. * Full Unicode URL support
  722. * Support for protocol-less redirects.
  723. * Allow for arbitrary request types.
  724. * Bugfixes
  725. 0.6.0 (2011-08-17)
  726. ++++++++++++++++++
  727. * New callback hook system
  728. * New persistent sessions object and context manager
  729. * Transparent Dict-cookie handling
  730. * Status code reference object
  731. * Removed Response.cached
  732. * Added Response.request
  733. * All args are kwargs
  734. * Relative redirect support
  735. * HTTPError handling improvements
  736. * Improved https testing
  737. * Bugfixes
  738. 0.5.1 (2011-07-23)
  739. ++++++++++++++++++
  740. * International Domain Name Support!
  741. * Access headers without fetching entire body (``read()``)
  742. * Use lists as dicts for parameters
  743. * Add Forced Basic Authentication
  744. * Forced Basic is default authentication type
  745. * ``python-requests.org`` default User-Agent header
  746. * CaseInsensitiveDict lower-case caching
  747. * Response.history bugfix
  748. 0.5.0 (2011-06-21)
  749. ++++++++++++++++++
  750. * PATCH Support
  751. * Support for Proxies
  752. * HTTPBin Test Suite
  753. * Redirect Fixes
  754. * settings.verbose stream writing
  755. * Querystrings for all methods
  756. * URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as explicitly raised
  757. ``r.requests.get('hwe://blah'); r.raise_for_status()``
  758. 0.4.1 (2011-05-22)
  759. ++++++++++++++++++
  760. * Improved Redirection Handling
  761. * New 'allow_redirects' param for following non-GET/HEAD Redirects
  762. * Settings module refactoring
  763. 0.4.0 (2011-05-15)
  764. ++++++++++++++++++
  765. * Response.history: list of redirected responses
  766. * Case-Insensitive Header Dictionaries!
  767. * Unicode URLs
  768. 0.3.4 (2011-05-14)
  769. ++++++++++++++++++
  770. * Urllib2 HTTPAuthentication Recursion fix (Basic/Digest)
  771. * Internal Refactor
  772. * Bytes data upload Bugfix
  773. 0.3.3 (2011-05-12)
  774. ++++++++++++++++++
  775. * Request timeouts
  776. * Unicode url-encoded data
  777. * Settings context manager and module
  778. 0.3.2 (2011-04-15)
  779. ++++++++++++++++++
  780. * Automatic Decompression of GZip Encoded Content
  781. * AutoAuth Support for Tupled HTTP Auth
  782. 0.3.1 (2011-04-01)
  783. ++++++++++++++++++
  784. * Cookie Changes
  785. * Response.read()
  786. * Poster fix
  787. 0.3.0 (2011-02-25)
  788. ++++++++++++++++++
  789. * Automatic Authentication API Change
  790. * Smarter Query URL Parameterization
  791. * Allow file uploads and POST data together
  792. * New Authentication Manager System
  793. - Simpler Basic HTTP System
  794. - Supports all build-in urllib2 Auths
  795. - Allows for custom Auth Handlers
  796. 0.2.4 (2011-02-19)
  797. ++++++++++++++++++
  798. * Python 2.5 Support
  799. * PyPy-c v1.4 Support
  800. * Auto-Authentication tests
  801. * Improved Request object constructor
  802. 0.2.3 (2011-02-15)
  803. ++++++++++++++++++
  804. * New HTTPHandling Methods
  805. - Response.__nonzero__ (false if bad HTTP Status)
  806. - Response.ok (True if expected HTTP Status)
  807. - Response.error (Logged HTTPError if bad HTTP Status)
  808. - Response.raise_for_status() (Raises stored HTTPError)
  809. 0.2.2 (2011-02-14)
  810. ++++++++++++++++++
  811. * Still handles request in the event of an HTTPError. (Issue #2)
  812. * Eventlet and Gevent Monkeypatch support.
  813. * Cookie Support (Issue #1)
  814. 0.2.1 (2011-02-14)
  815. ++++++++++++++++++
  816. * Added file attribute to POST and PUT requests for multipart-encode file uploads.
  817. * Added Request.url attribute for context and redirects
  818. 0.2.0 (2011-02-14)
  819. ++++++++++++++++++
  820. * Birth!
  821. 0.0.1 (2011-02-13)
  822. ++++++++++++++++++
  823. * Frustration
  824. * Conception