You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1646 line
48 KiB

  1. Requests: HTTP for Humans
  2. =========================
  3. .. image:: https://img.shields.io/pypi/v/requests.svg
  4. :target: https://pypi.python.org/pypi/requests
  5. .. image:: https://img.shields.io/pypi/l/requests.svg
  6. :target: https://pypi.python.org/pypi/requests
  7. .. image:: https://img.shields.io/pypi/pyversions/requests.svg
  8. :target: https://pypi.python.org/pypi/requests
  9. .. image:: https://codecov.io/github/requests/requests/coverage.svg?branch=master
  10. :target: https://codecov.io/github/requests/requests
  11. :alt: codecov.io
  12. .. image:: https://img.shields.io/github/contributors/requests/requests.svg
  13. :target: https://github.com/requests/requests/graphs/contributors
  14. .. image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg
  15. :target: https://saythanks.io/to/kennethreitz
  16. Requests is the only *Non-GMO* HTTP library for Python, safe for human
  17. consumption.
  18. **Warning:** Recreational use of the Python standard library for HTTP may result in dangerous side-effects,
  19. including: security vulnerabilities, verbose code, reinventing the wheel,
  20. constantly reading documentation, depression, headaches, or even death.
  21. Behold, the power of Requests:
  22. .. code-block:: python
  23. >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass'))
  24. >>> r.status_code
  25. 200
  26. >>> r.headers['content-type']
  27. 'application/json; charset=utf8'
  28. >>> r.encoding
  29. 'utf-8'
  30. >>> r.text
  31. u'{"type":"User"...'
  32. >>> r.json()
  33. {u'disk_usage': 368627, u'private_gists': 484, ...}
  34. See `the similar code, sans Requests <https://gist.github.com/973705>`_.
  35. .. image:: https://raw.githubusercontent.com/requests/requests/master/docs/_static/requests-logo-small.png
  36. :target: http://docs.python-requests.org/
  37. Requests allows you to send *organic, grass-fed* HTTP/1.1 requests, without the
  38. need for manual labor. There's no need to manually add query strings to your
  39. URLs, or to form-encode your POST data. Keep-alive and HTTP connection pooling
  40. are 100% automatic, thanks to `urllib3 <https://github.com/shazow/urllib3>`_.
  41. Besides, all the cool kids are doing it. Requests is one of the most
  42. downloaded Python packages of all time, pulling in over 11,000,000 downloads
  43. every month. You don't want to be left out!
  44. Feature Support
  45. ---------------
  46. Requests is ready for today's web.
  47. - International Domains and URLs
  48. - Keep-Alive & Connection Pooling
  49. - Sessions with Cookie Persistence
  50. - Browser-style SSL Verification
  51. - Basic/Digest Authentication
  52. - Elegant Key/Value Cookies
  53. - Automatic Decompression
  54. - Automatic Content Decoding
  55. - Unicode Response Bodies
  56. - Multipart File Uploads
  57. - HTTP(S) Proxy Support
  58. - Connection Timeouts
  59. - Streaming Downloads
  60. - ``.netrc`` Support
  61. - Chunked Requests
  62. Requests officially supports Python 2.6–2.7 & 3.3–3.7, and runs great on PyPy.
  63. Installation
  64. ------------
  65. To install Requests, simply:
  66. .. code-block:: bash
  67. $ pip install requests
  68. ✨🍰✨
  69. Satisfaction guaranteed.
  70. Documentation
  71. -------------
  72. Fantastic documentation is available at http://docs.python-requests.org/, for a limited time only.
  73. How to Contribute
  74. -----------------
  75. #. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug. There is a `Contributor Friendly`_ tag for issues that should be ideal for people who are not very familiar with the codebase yet.
  76. #. Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it).
  77. #. Write a test which shows that the bug was fixed or that the feature works as expected.
  78. #. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.
  79. .. _`the repository`: http://github.com/requests/requests
  80. .. _AUTHORS: https://github.com/requests/requests/blob/master/AUTHORS.rst
  81. .. _Contributor Friendly: https://github.com/requests/requests/issues?direction=desc&labels=Contributor+Friendly&page=1&sort=updated&state=open
  82. .. :changelog:
  83. Release History
  84. ---------------
  85. 2.18.4 (2017-08-15)
  86. +++++++++++++++++++
  87. **Improvements**
  88. - Error messages for invalid headers now include the header name for easier debugging
  89. **Dependencies**
  90. - We now support idna v2.6.
  91. 2.18.3 (2017-08-02)
  92. +++++++++++++++++++
  93. **Improvements**
  94. - Running ``$ python -m requests.help`` now includes the installed version of idna.
  95. **Bugfixes**
  96. - Fixed issue where Requests would raise ``ConnectionError`` instead of
  97. ``SSLError`` when encountering SSL problems when using urllib3 v1.22.
  98. 2.18.2 (2017-07-25)
  99. +++++++++++++++++++
  100. **Bugfixes**
  101. - ``requests.help`` no longer fails on Python 2.6 due to the absence of
  102. ``ssl.OPENSSL_VERSION_NUMBER``.
  103. **Dependencies**
  104. - We now support urllib3 v1.22.
  105. 2.18.1 (2017-06-14)
  106. +++++++++++++++++++
  107. **Bugfixes**
  108. - Fix an error in the packaging whereby the *.whl contained incorrect data that
  109. regressed the fix in v2.17.3.
  110. 2.18.0 (2017-06-14)
  111. +++++++++++++++++++
  112. **Improvements**
  113. - ``Response`` is now a context manager, so can be used directly in a ``with`` statement
  114. without first having to be wrapped by ``contextlib.closing()``.
  115. **Bugfixes**
  116. - Resolve installation failure if multiprocessing is not available
  117. - Resolve tests crash if multiprocessing is not able to determine the number of CPU cores
  118. - Resolve error swallowing in utils set_environ generator
  119. 2.17.3 (2017-05-29)
  120. +++++++++++++++++++
  121. **Improvements**
  122. - Improved ``packages`` namespace identity support, for monkeypatching libraries.
  123. 2.17.2 (2017-05-29)
  124. +++++++++++++++++++
  125. **Improvements**
  126. - Improved ``packages`` namespace identity support, for monkeypatching libraries.
  127. 2.17.1 (2017-05-29)
  128. +++++++++++++++++++
  129. **Improvements**
  130. - Improved ``packages`` namespace identity support, for monkeypatching libraries.
  131. 2.17.0 (2017-05-29)
  132. +++++++++++++++++++
  133. **Improvements**
  134. - Removal of the 301 redirect cache. This improves thread-safety.
  135. 2.16.5 (2017-05-28)
  136. +++++++++++++++++++
  137. - Improvements to ``$ python -m requests.help``.
  138. 2.16.4 (2017-05-27)
  139. +++++++++++++++++++
  140. - Introduction of the ``$ python -m requests.help`` command, for debugging with maintainers!
  141. 2.16.3 (2017-05-27)
  142. +++++++++++++++++++
  143. - Further restored the ``requests.packages`` namespace for compatibility reasons.
  144. 2.16.2 (2017-05-27)
  145. +++++++++++++++++++
  146. - Further restored the ``requests.packages`` namespace for compatibility reasons.
  147. No code modification (noted below) should be neccessary any longer.
  148. 2.16.1 (2017-05-27)
  149. +++++++++++++++++++
  150. - Restored the ``requests.packages`` namespace for compatibility reasons.
  151. - Bugfix for ``urllib3`` version parsing.
  152. **Note**: code that was written to import against the ``requests.packages``
  153. namespace previously will have to import code that rests at this module-level
  154. now.
  155. For example::
  156. from requests.packages.urllib3.poolmanager import PoolManager
  157. Will need to be re-written to be::
  158. from requests.packages import urllib3
  159. urllib3.poolmanager.PoolManager
  160. Or, even better::
  161. from urllib3.poolmanager import PoolManager
  162. 2.16.0 (2017-05-26)
  163. +++++++++++++++++++
  164. - Unvendor ALL the things!
  165. 2.15.1 (2017-05-26)
  166. +++++++++++++++++++
  167. - Everyone makes mistakes.
  168. 2.15.0 (2017-05-26)
  169. +++++++++++++++++++
  170. **Improvements**
  171. - Introduction of the ``Response.next`` property, for getting the next
  172. ``PreparedResponse`` from a redirect chain (when ``allow_redirects=False``).
  173. - Internal refactoring of ``__version__`` module.
  174. **Bugfixes**
  175. - Restored once-optional parameter for ``requests.utils.get_environ_proxies()``.
  176. 2.14.2 (2017-05-10)
  177. +++++++++++++++++++
  178. **Bugfixes**
  179. - Changed a less-than to an equal-to and an or in the dependency markers to
  180. widen compatibility with older setuptools releases.
  181. 2.14.1 (2017-05-09)
  182. +++++++++++++++++++
  183. **Bugfixes**
  184. - Changed the dependency markers to widen compatibility with older pip
  185. releases.
  186. 2.14.0 (2017-05-09)
  187. +++++++++++++++++++
  188. **Improvements**
  189. - It is now possible to pass ``no_proxy`` as a key to the ``proxies``
  190. dictionary to provide handling similar to the ``NO_PROXY`` environment
  191. variable.
  192. - When users provide invalid paths to certificate bundle files or directories
  193. Requests now raises ``IOError``, rather than failing at the time of the HTTPS
  194. request with a fairly inscrutable certificate validation error.
  195. - The behavior of ``SessionRedirectMixin`` was slightly altered.
  196. ``resolve_redirects`` will now detect a redirect by calling
  197. ``get_redirect_target(response)`` instead of directly
  198. querying ``Response.is_redirect`` and ``Response.headers['location']``.
  199. Advanced users will be able to process malformed redirects more easily.
  200. - Changed the internal calculation of elapsed request time to have higher
  201. resolution on Windows.
  202. - Added ``win_inet_pton`` as conditional dependency for the ``[socks]`` extra
  203. on Windows with Python 2.7.
  204. - Changed the proxy bypass implementation on Windows: the proxy bypass
  205. check doesn't use forward and reverse DNS requests anymore
  206. - URLs with schemes that begin with ``http`` but are not ``http`` or ``https``
  207. no longer have their host parts forced to lowercase.
  208. **Bugfixes**
  209. - Much improved handling of non-ASCII ``Location`` header values in redirects.
  210. Fewer ``UnicodeDecodeErrors`` are encountered on Python 2, and Python 3 now
  211. correctly understands that Latin-1 is unlikely to be the correct encoding.
  212. - If an attempt to ``seek`` file to find out its length fails, we now
  213. appropriately handle that by aborting our content-length calculations.
  214. - Restricted ``HTTPDigestAuth`` to only respond to auth challenges made on 4XX
  215. responses, rather than to all auth challenges.
  216. - Fixed some code that was firing ``DeprecationWarning`` on Python 3.6.
  217. - The dismayed person emoticon (``/o\\``) no longer has a big head. I'm sure
  218. this is what you were all worrying about most.
  219. **Miscellaneous**
  220. - Updated bundled urllib3 to v1.21.1.
  221. - Updated bundled chardet to v3.0.2.
  222. - Updated bundled idna to v2.5.
  223. - Updated bundled certifi to 2017.4.17.
  224. 2.13.0 (2017-01-24)
  225. +++++++++++++++++++
  226. **Features**
  227. - Only load the ``idna`` library when we've determined we need it. This will
  228. save some memory for users.
  229. **Miscellaneous**
  230. - Updated bundled urllib3 to 1.20.
  231. - Updated bundled idna to 2.2.
  232. 2.12.5 (2017-01-18)
  233. +++++++++++++++++++
  234. **Bugfixes**
  235. - Fixed an issue with JSON encoding detection, specifically detecting
  236. big-endian UTF-32 with BOM.
  237. 2.12.4 (2016-12-14)
  238. +++++++++++++++++++
  239. **Bugfixes**
  240. - Fixed regression from 2.12.2 where non-string types were rejected in the
  241. basic auth parameters. While support for this behaviour has been readded,
  242. the behaviour is deprecated and will be removed in the future.
  243. 2.12.3 (2016-12-01)
  244. +++++++++++++++++++
  245. **Bugfixes**
  246. - Fixed regression from v2.12.1 for URLs with schemes that begin with "http".
  247. These URLs have historically been processed as though they were HTTP-schemed
  248. URLs, and so have had parameters added. This was removed in v2.12.2 in an
  249. overzealous attempt to resolve problems with IDNA-encoding those URLs. This
  250. change was reverted: the other fixes for IDNA-encoding have been judged to
  251. be sufficient to return to the behaviour Requests had before v2.12.0.
  252. 2.12.2 (2016-11-30)
  253. +++++++++++++++++++
  254. **Bugfixes**
  255. - Fixed several issues with IDNA-encoding URLs that are technically invalid but
  256. which are widely accepted. Requests will now attempt to IDNA-encode a URL if
  257. it can but, if it fails, and the host contains only ASCII characters, it will
  258. be passed through optimistically. This will allow users to opt-in to using
  259. IDNA2003 themselves if they want to, and will also allow technically invalid
  260. but still common hostnames.
  261. - Fixed an issue where URLs with leading whitespace would raise
  262. ``InvalidSchema`` errors.
  263. - Fixed an issue where some URLs without the HTTP or HTTPS schemes would still
  264. have HTTP URL preparation applied to them.
  265. - Fixed an issue where Unicode strings could not be used in basic auth.
  266. - Fixed an issue encountered by some Requests plugins where constructing a
  267. Response object would cause ``Response.content`` to raise an
  268. ``AttributeError``.
  269. 2.12.1 (2016-11-16)
  270. +++++++++++++++++++
  271. **Bugfixes**
  272. - Updated setuptools 'security' extra for the new PyOpenSSL backend in urllib3.
  273. **Miscellaneous**
  274. - Updated bundled urllib3 to 1.19.1.
  275. 2.12.0 (2016-11-15)
  276. +++++++++++++++++++
  277. **Improvements**
  278. - Updated support for internationalized domain names from IDNA2003 to IDNA2008.
  279. This updated support is required for several forms of IDNs and is mandatory
  280. for .de domains.
  281. - Much improved heuristics for guessing content lengths: Requests will no
  282. longer read an entire ``StringIO`` into memory.
  283. - Much improved logic for recalculating ``Content-Length`` headers for
  284. ``PreparedRequest`` objects.
  285. - Improved tolerance for file-like objects that have no ``tell`` method but
  286. do have a ``seek`` method.
  287. - Anything that is a subclass of ``Mapping`` is now treated like a dictionary
  288. by the ``data=`` keyword argument.
  289. - Requests now tolerates empty passwords in proxy credentials, rather than
  290. stripping the credentials.
  291. - If a request is made with a file-like object as the body and that request is
  292. redirected with a 307 or 308 status code, Requests will now attempt to
  293. rewind the body object so it can be replayed.
  294. **Bugfixes**
  295. - When calling ``response.close``, the call to ``close`` will be propagated
  296. through to non-urllib3 backends.
  297. - Fixed issue where the ``ALL_PROXY`` environment variable would be preferred
  298. over scheme-specific variables like ``HTTP_PROXY``.
  299. - Fixed issue where non-UTF8 reason phrases got severely mangled by falling
  300. back to decoding using ISO 8859-1 instead.
  301. - Fixed a bug where Requests would not correctly correlate cookies set when
  302. using custom Host headers if those Host headers did not use the native
  303. string type for the platform.
  304. **Miscellaneous**
  305. - Updated bundled urllib3 to 1.19.
  306. - Updated bundled certifi certs to 2016.09.26.
  307. 2.11.1 (2016-08-17)
  308. +++++++++++++++++++
  309. **Bugfixes**
  310. - Fixed a bug when using ``iter_content`` with ``decode_unicode=True`` for
  311. streamed bodies would raise ``AttributeError``. This bug was introduced in
  312. 2.11.
  313. - Strip Content-Type and Transfer-Encoding headers from the header block when
  314. following a redirect that transforms the verb from POST/PUT to GET.
  315. 2.11.0 (2016-08-08)
  316. +++++++++++++++++++
  317. **Improvements**
  318. - Added support for the ``ALL_PROXY`` environment variable.
  319. - Reject header values that contain leading whitespace or newline characters to
  320. reduce risk of header smuggling.
  321. **Bugfixes**
  322. - Fixed occasional ``TypeError`` when attempting to decode a JSON response that
  323. occurred in an error case. Now correctly returns a ``ValueError``.
  324. - Requests would incorrectly ignore a non-CIDR IP address in the ``NO_PROXY``
  325. environment variables: Requests now treats it as a specific IP.
  326. - Fixed a bug when sending JSON data that could cause us to encounter obscure
  327. OpenSSL errors in certain network conditions (yes, really).
  328. - Added type checks to ensure that ``iter_content`` only accepts integers and
  329. ``None`` for chunk sizes.
  330. - Fixed issue where responses whose body had not been fully consumed would have
  331. the underlying connection closed but not returned to the connection pool,
  332. which could cause Requests to hang in situations where the ``HTTPAdapter``
  333. had been configured to use a blocking connection pool.
  334. **Miscellaneous**
  335. - Updated bundled urllib3 to 1.16.
  336. - Some previous releases accidentally accepted non-strings as acceptable header values. This release does not.
  337. 2.10.0 (2016-04-29)
  338. +++++++++++++++++++
  339. **New Features**
  340. - SOCKS Proxy Support! (requires PySocks; ``$ pip install requests[socks]``)
  341. **Miscellaneous**
  342. - Updated bundled urllib3 to 1.15.1.
  343. 2.9.2 (2016-04-29)
  344. ++++++++++++++++++
  345. **Improvements**
  346. - Change built-in CaseInsensitiveDict (used for headers) to use OrderedDict
  347. as its underlying datastore.
  348. **Bugfixes**
  349. - Don't use redirect_cache if allow_redirects=False
  350. - When passed objects that throw exceptions from ``tell()``, send them via
  351. chunked transfer encoding instead of failing.
  352. - Raise a ProxyError for proxy related connection issues.
  353. 2.9.1 (2015-12-21)
  354. ++++++++++++++++++
  355. **Bugfixes**
  356. - Resolve regression introduced in 2.9.0 that made it impossible to send binary
  357. strings as bodies in Python 3.
  358. - Fixed errors when calculating cookie expiration dates in certain locales.
  359. **Miscellaneous**
  360. - Updated bundled urllib3 to 1.13.1.
  361. 2.9.0 (2015-12-15)
  362. ++++++++++++++++++
  363. **Minor Improvements** (Backwards compatible)
  364. - The ``verify`` keyword argument now supports being passed a path to a
  365. directory of CA certificates, not just a single-file bundle.
  366. - Warnings are now emitted when sending files opened in text mode.
  367. - Added the 511 Network Authentication Required status code to the status code
  368. registry.
  369. **Bugfixes**
  370. - For file-like objects that are not seeked to the very beginning, we now
  371. send the content length for the number of bytes we will actually read, rather
  372. than the total size of the file, allowing partial file uploads.
  373. - When uploading file-like objects, if they are empty or have no obvious
  374. content length we set ``Transfer-Encoding: chunked`` rather than
  375. ``Content-Length: 0``.
  376. - We correctly receive the response in buffered mode when uploading chunked
  377. bodies.
  378. - We now handle being passed a query string as a bytestring on Python 3, by
  379. decoding it as UTF-8.
  380. - Sessions are now closed in all cases (exceptional and not) when using the
  381. functional API rather than leaking and waiting for the garbage collector to
  382. clean them up.
  383. - Correctly handle digest auth headers with a malformed ``qop`` directive that
  384. contains no token, by treating it the same as if no ``qop`` directive was
  385. provided at all.
  386. - Minor performance improvements when removing specific cookies by name.
  387. **Miscellaneous**
  388. - Updated urllib3 to 1.13.
  389. 2.8.1 (2015-10-13)
  390. ++++++++++++++++++
  391. **Bugfixes**
  392. - Update certificate bundle to match ``certifi`` 2015.9.6.2's weak certificate
  393. bundle.
  394. - Fix a bug in 2.8.0 where requests would raise ``ConnectTimeout`` instead of
  395. ``ConnectionError``
  396. - When using the PreparedRequest flow, requests will now correctly respect the
  397. ``json`` parameter. Broken in 2.8.0.
  398. - When using the PreparedRequest flow, requests will now correctly handle a
  399. Unicode-string method name on Python 2. Broken in 2.8.0.
  400. 2.8.0 (2015-10-05)
  401. ++++++++++++++++++
  402. **Minor Improvements** (Backwards Compatible)
  403. - Requests now supports per-host proxies. This allows the ``proxies``
  404. dictionary to have entries of the form
  405. ``{'<scheme>://<hostname>': '<proxy>'}``. Host-specific proxies will be used
  406. in preference to the previously-supported scheme-specific ones, but the
  407. previous syntax will continue to work.
  408. - ``Response.raise_for_status`` now prints the URL that failed as part of the
  409. exception message.
  410. - ``requests.utils.get_netrc_auth`` now takes an ``raise_errors`` kwarg,
  411. defaulting to ``False``. When ``True``, errors parsing ``.netrc`` files cause
  412. exceptions to be thrown.
  413. - Change to bundled projects import logic to make it easier to unbundle
  414. requests downstream.
  415. - Changed the default User-Agent string to avoid leaking data on Linux: now
  416. contains only the requests version.
  417. **Bugfixes**
  418. - The ``json`` parameter to ``post()`` and friends will now only be used if
  419. neither ``data`` nor ``files`` are present, consistent with the
  420. documentation.
  421. - We now ignore empty fields in the ``NO_PROXY`` environment variable.
  422. - Fixed problem where ``httplib.BadStatusLine`` would get raised if combining
  423. ``stream=True`` with ``contextlib.closing``.
  424. - Prevented bugs where we would attempt to return the same connection back to
  425. the connection pool twice when sending a Chunked body.
  426. - Miscellaneous minor internal changes.
  427. - Digest Auth support is now thread safe.
  428. **Updates**
  429. - Updated urllib3 to 1.12.
  430. 2.7.0 (2015-05-03)
  431. ++++++++++++++++++
  432. This is the first release that follows our new release process. For more, see
  433. `our documentation
  434. <http://docs.python-requests.org/en/latest/community/release-process/>`_.
  435. **Bugfixes**
  436. - Updated urllib3 to 1.10.4, resolving several bugs involving chunked transfer
  437. encoding and response framing.
  438. 2.6.2 (2015-04-23)
  439. ++++++++++++++++++
  440. **Bugfixes**
  441. - Fix regression where compressed data that was sent as chunked data was not
  442. properly decompressed. (#2561)
  443. 2.6.1 (2015-04-22)
  444. ++++++++++++++++++
  445. **Bugfixes**
  446. - Remove VendorAlias import machinery introduced in v2.5.2.
  447. - Simplify the PreparedRequest.prepare API: We no longer require the user to
  448. pass an empty list to the hooks keyword argument. (c.f. #2552)
  449. - Resolve redirects now receives and forwards all of the original arguments to
  450. the adapter. (#2503)
  451. - Handle UnicodeDecodeErrors when trying to deal with a unicode URL that
  452. cannot be encoded in ASCII. (#2540)
  453. - Populate the parsed path of the URI field when performing Digest
  454. Authentication. (#2426)
  455. - Copy a PreparedRequest's CookieJar more reliably when it is not an instance
  456. of RequestsCookieJar. (#2527)
  457. 2.6.0 (2015-03-14)
  458. ++++++++++++++++++
  459. **Bugfixes**
  460. - CVE-2015-2296: Fix handling of cookies on redirect. Previously a cookie
  461. without a host value set would use the hostname for the redirected URL
  462. exposing requests users to session fixation attacks and potentially cookie
  463. stealing. This was disclosed privately by Matthew Daley of
  464. `BugFuzz <https://bugfuzz.com>`_. This affects all versions of requests from
  465. v2.1.0 to v2.5.3 (inclusive on both ends).
  466. - Fix error when requests is an ``install_requires`` dependency and ``python
  467. setup.py test`` is run. (#2462)
  468. - Fix error when urllib3 is unbundled and requests continues to use the
  469. vendored import location.
  470. - Include fixes to ``urllib3``'s header handling.
  471. - Requests' handling of unvendored dependencies is now more restrictive.
  472. **Features and Improvements**
  473. - Support bytearrays when passed as parameters in the ``files`` argument.
  474. (#2468)
  475. - Avoid data duplication when creating a request with ``str``, ``bytes``, or
  476. ``bytearray`` input to the ``files`` argument.
  477. 2.5.3 (2015-02-24)
  478. ++++++++++++++++++
  479. **Bugfixes**
  480. - Revert changes to our vendored certificate bundle. For more context see
  481. (#2455, #2456, and http://bugs.python.org/issue23476)
  482. 2.5.2 (2015-02-23)
  483. ++++++++++++++++++
  484. **Features and Improvements**
  485. - Add sha256 fingerprint support. (`shazow/urllib3#540`_)
  486. - Improve the performance of headers. (`shazow/urllib3#544`_)
  487. **Bugfixes**
  488. - Copy pip's import machinery. When downstream redistributors remove
  489. requests.packages.urllib3 the import machinery will continue to let those
  490. same symbols work. Example usage in requests' documentation and 3rd-party
  491. libraries relying on the vendored copies of urllib3 will work without having
  492. to fallback to the system urllib3.
  493. - Attempt to quote parts of the URL on redirect if unquoting and then quoting
  494. fails. (#2356)
  495. - Fix filename type check for multipart form-data uploads. (#2411)
  496. - Properly handle the case where a server issuing digest authentication
  497. challenges provides both auth and auth-int qop-values. (#2408)
  498. - Fix a socket leak. (`shazow/urllib3#549`_)
  499. - Fix multiple ``Set-Cookie`` headers properly. (`shazow/urllib3#534`_)
  500. - Disable the built-in hostname verification. (`shazow/urllib3#526`_)
  501. - Fix the behaviour of decoding an exhausted stream. (`shazow/urllib3#535`_)
  502. **Security**
  503. - Pulled in an updated ``cacert.pem``.
  504. - Drop RC4 from the default cipher list. (`shazow/urllib3#551`_)
  505. .. _shazow/urllib3#551: https://github.com/shazow/urllib3/pull/551
  506. .. _shazow/urllib3#549: https://github.com/shazow/urllib3/pull/549
  507. .. _shazow/urllib3#544: https://github.com/shazow/urllib3/pull/544
  508. .. _shazow/urllib3#540: https://github.com/shazow/urllib3/pull/540
  509. .. _shazow/urllib3#535: https://github.com/shazow/urllib3/pull/535
  510. .. _shazow/urllib3#534: https://github.com/shazow/urllib3/pull/534
  511. .. _shazow/urllib3#526: https://github.com/shazow/urllib3/pull/526
  512. 2.5.1 (2014-12-23)
  513. ++++++++++++++++++
  514. **Behavioural Changes**
  515. - Only catch HTTPErrors in raise_for_status (#2382)
  516. **Bugfixes**
  517. - Handle LocationParseError from urllib3 (#2344)
  518. - Handle file-like object filenames that are not strings (#2379)
  519. - Unbreak HTTPDigestAuth handler. Allow new nonces to be negotiated (#2389)
  520. 2.5.0 (2014-12-01)
  521. ++++++++++++++++++
  522. **Improvements**
  523. - Allow usage of urllib3's Retry object with HTTPAdapters (#2216)
  524. - The ``iter_lines`` method on a response now accepts a delimiter with which
  525. to split the content (#2295)
  526. **Behavioural Changes**
  527. - Add deprecation warnings to functions in requests.utils that will be removed
  528. in 3.0 (#2309)
  529. - Sessions used by the functional API are always closed (#2326)
  530. - Restrict requests to HTTP/1.1 and HTTP/1.0 (stop accepting HTTP/0.9) (#2323)
  531. **Bugfixes**
  532. - Only parse the URL once (#2353)
  533. - Allow Content-Length header to always be overridden (#2332)
  534. - Properly handle files in HTTPDigestAuth (#2333)
  535. - Cap redirect_cache size to prevent memory abuse (#2299)
  536. - Fix HTTPDigestAuth handling of redirects after authenticating successfully
  537. (#2253)
  538. - Fix crash with custom method parameter to Session.request (#2317)
  539. - Fix how Link headers are parsed using the regular expression library (#2271)
  540. **Documentation**
  541. - Add more references for interlinking (#2348)
  542. - Update CSS for theme (#2290)
  543. - Update width of buttons and sidebar (#2289)
  544. - Replace references of Gittip with Gratipay (#2282)
  545. - Add link to changelog in sidebar (#2273)
  546. 2.4.3 (2014-10-06)
  547. ++++++++++++++++++
  548. **Bugfixes**
  549. - Unicode URL improvements for Python 2.
  550. - Re-order JSON param for backwards compat.
  551. - Automatically defrag authentication schemes from host/pass URIs. (`#2249 <https://github.com/requests/requests/issues/2249>`_)
  552. 2.4.2 (2014-10-05)
  553. ++++++++++++++++++
  554. **Improvements**
  555. - FINALLY! Add json parameter for uploads! (`#2258 <https://github.com/requests/requests/pull/2258>`_)
  556. - Support for bytestring URLs on Python 3.x (`#2238 <https://github.com/requests/requests/pull/2238>`_)
  557. **Bugfixes**
  558. - Avoid getting stuck in a loop (`#2244 <https://github.com/requests/requests/pull/2244>`_)
  559. - Multiple calls to iter* fail with unhelpful error. (`#2240 <https://github.com/requests/requests/issues/2240>`_, `#2241 <https://github.com/requests/requests/issues/2241>`_)
  560. **Documentation**
  561. - Correct redirection introduction (`#2245 <https://github.com/requests/requests/pull/2245/>`_)
  562. - Added example of how to send multiple files in one request. (`#2227 <https://github.com/requests/requests/pull/2227/>`_)
  563. - Clarify how to pass a custom set of CAs (`#2248 <https://github.com/requests/requests/pull/2248/>`_)
  564. 2.4.1 (2014-09-09)
  565. ++++++++++++++++++
  566. - Now has a "security" package extras set, ``$ pip install requests[security]``
  567. - Requests will now use Certifi if it is available.
  568. - Capture and re-raise urllib3 ProtocolError
  569. - Bugfix for responses that attempt to redirect to themselves forever (wtf?).
  570. 2.4.0 (2014-08-29)
  571. ++++++++++++++++++
  572. **Behavioral Changes**
  573. - ``Connection: keep-alive`` header is now sent automatically.
  574. **Improvements**
  575. - Support for connect timeouts! Timeout now accepts a tuple (connect, read) which is used to set individual connect and read timeouts.
  576. - Allow copying of PreparedRequests without headers/cookies.
  577. - Updated bundled urllib3 version.
  578. - Refactored settings loading from environment -- new `Session.merge_environment_settings`.
  579. - Handle socket errors in iter_content.
  580. 2.3.0 (2014-05-16)
  581. ++++++++++++++++++
  582. **API Changes**
  583. - New ``Response`` property ``is_redirect``, which is true when the
  584. library could have processed this response as a redirection (whether
  585. or not it actually did).
  586. - The ``timeout`` parameter now affects requests with both ``stream=True`` and
  587. ``stream=False`` equally.
  588. - The change in v2.0.0 to mandate explicit proxy schemes has been reverted.
  589. Proxy schemes now default to ``http://``.
  590. - The ``CaseInsensitiveDict`` used for HTTP headers now behaves like a normal
  591. dictionary when references as string or viewed in the interpreter.
  592. **Bugfixes**
  593. - No longer expose Authorization or Proxy-Authorization headers on redirect.
  594. Fix CVE-2014-1829 and CVE-2014-1830 respectively.
  595. - Authorization is re-evaluated each redirect.
  596. - On redirect, pass url as native strings.
  597. - Fall-back to autodetected encoding for JSON when Unicode detection fails.
  598. - Headers set to ``None`` on the ``Session`` are now correctly not sent.
  599. - Correctly honor ``decode_unicode`` even if it wasn't used earlier in the same
  600. response.
  601. - Stop advertising ``compress`` as a supported Content-Encoding.
  602. - The ``Response.history`` parameter is now always a list.
  603. - Many, many ``urllib3`` bugfixes.
  604. 2.2.1 (2014-01-23)
  605. ++++++++++++++++++
  606. **Bugfixes**
  607. - Fixes incorrect parsing of proxy credentials that contain a literal or encoded '#' character.
  608. - Assorted urllib3 fixes.
  609. 2.2.0 (2014-01-09)
  610. ++++++++++++++++++
  611. **API Changes**
  612. - New exception: ``ContentDecodingError``. Raised instead of ``urllib3``
  613. ``DecodeError`` exceptions.
  614. **Bugfixes**
  615. - Avoid many many exceptions from the buggy implementation of ``proxy_bypass`` on OS X in Python 2.6.
  616. - Avoid crashing when attempting to get authentication credentials from ~/.netrc when running as a user without a home directory.
  617. - Use the correct pool size for pools of connections to proxies.
  618. - Fix iteration of ``CookieJar`` objects.
  619. - Ensure that cookies are persisted over redirect.
  620. - Switch back to using chardet, since it has merged with charade.
  621. 2.1.0 (2013-12-05)
  622. ++++++++++++++++++
  623. - Updated CA Bundle, of course.
  624. - Cookies set on individual Requests through a ``Session`` (e.g. via ``Session.get()``) are no longer persisted to the ``Session``.
  625. - Clean up connections when we hit problems during chunked upload, rather than leaking them.
  626. - Return connections to the pool when a chunked upload is successful, rather than leaking it.
  627. - Match the HTTPbis recommendation for HTTP 301 redirects.
  628. - Prevent hanging when using streaming uploads and Digest Auth when a 401 is received.
  629. - Values of headers set by Requests are now always the native string type.
  630. - Fix previously broken SNI support.
  631. - Fix accessing HTTP proxies using proxy authentication.
  632. - Unencode HTTP Basic usernames and passwords extracted from URLs.
  633. - Support for IP address ranges for no_proxy environment variable
  634. - Parse headers correctly when users override the default ``Host:`` header.
  635. - Avoid munging the URL in case of case-sensitive servers.
  636. - Looser URL handling for non-HTTP/HTTPS urls.
  637. - Accept unicode methods in Python 2.6 and 2.7.
  638. - More resilient cookie handling.
  639. - Make ``Response`` objects pickleable.
  640. - Actually added MD5-sess to Digest Auth instead of pretending to like last time.
  641. - Updated internal urllib3.
  642. - Fixed @Lukasa's lack of taste.
  643. 2.0.1 (2013-10-24)
  644. ++++++++++++++++++
  645. - Updated included CA Bundle with new mistrusts and automated process for the future
  646. - Added MD5-sess to Digest Auth
  647. - Accept per-file headers in multipart file POST messages.
  648. - Fixed: Don't send the full URL on CONNECT messages.
  649. - Fixed: Correctly lowercase a redirect scheme.
  650. - Fixed: Cookies not persisted when set via functional API.
  651. - Fixed: Translate urllib3 ProxyError into a requests ProxyError derived from ConnectionError.
  652. - Updated internal urllib3 and chardet.
  653. 2.0.0 (2013-09-24)
  654. ++++++++++++++++++
  655. **API Changes:**
  656. - Keys in the Headers dictionary are now native strings on all Python versions,
  657. i.e. bytestrings on Python 2, unicode on Python 3.
  658. - Proxy URLs now *must* have an explicit scheme. A ``MissingSchema`` exception
  659. will be raised if they don't.
  660. - Timeouts now apply to read time if ``Stream=False``.
  661. - ``RequestException`` is now a subclass of ``IOError``, not ``RuntimeError``.
  662. - Added new method to ``PreparedRequest`` objects: ``PreparedRequest.copy()``.
  663. - Added new method to ``Session`` objects: ``Session.update_request()``. This
  664. method updates a ``Request`` object with the data (e.g. cookies) stored on
  665. the ``Session``.
  666. - Added new method to ``Session`` objects: ``Session.prepare_request()``. This
  667. method updates and prepares a ``Request`` object, and returns the
  668. corresponding ``PreparedRequest`` object.
  669. - Added new method to ``HTTPAdapter`` objects: ``HTTPAdapter.proxy_headers()``.
  670. This should not be called directly, but improves the subclass interface.
  671. - ``httplib.IncompleteRead`` exceptions caused by incorrect chunked encoding
  672. will now raise a Requests ``ChunkedEncodingError`` instead.
  673. - Invalid percent-escape sequences now cause a Requests ``InvalidURL``
  674. exception to be raised.
  675. - HTTP 208 no longer uses reason phrase ``"im_used"``. Correctly uses
  676. ``"already_reported"``.
  677. - HTTP 226 reason added (``"im_used"``).
  678. **Bugfixes:**
  679. - Vastly improved proxy support, including the CONNECT verb. Special thanks to
  680. the many contributors who worked towards this improvement.
  681. - Cookies are now properly managed when 401 authentication responses are
  682. received.
  683. - Chunked encoding fixes.
  684. - Support for mixed case schemes.
  685. - Better handling of streaming downloads.
  686. - Retrieve environment proxies from more locations.
  687. - Minor cookies fixes.
  688. - Improved redirect behaviour.
  689. - Improved streaming behaviour, particularly for compressed data.
  690. - Miscellaneous small Python 3 text encoding bugs.
  691. - ``.netrc`` no longer overrides explicit auth.
  692. - Cookies set by hooks are now correctly persisted on Sessions.
  693. - Fix problem with cookies that specify port numbers in their host field.
  694. - ``BytesIO`` can be used to perform streaming uploads.
  695. - More generous parsing of the ``no_proxy`` environment variable.
  696. - Non-string objects can be passed in data values alongside files.
  697. 1.2.3 (2013-05-25)
  698. ++++++++++++++++++
  699. - Simple packaging fix
  700. 1.2.2 (2013-05-23)
  701. ++++++++++++++++++
  702. - Simple packaging fix
  703. 1.2.1 (2013-05-20)
  704. ++++++++++++++++++
  705. - 301 and 302 redirects now change the verb to GET for all verbs, not just
  706. POST, improving browser compatibility.
  707. - Python 3.3.2 compatibility
  708. - Always percent-encode location headers
  709. - Fix connection adapter matching to be most-specific first
  710. - new argument to the default connection adapter for passing a block argument
  711. - prevent a KeyError when there's no link headers
  712. 1.2.0 (2013-03-31)
  713. ++++++++++++++++++
  714. - Fixed cookies on sessions and on requests
  715. - Significantly change how hooks are dispatched - hooks now receive all the
  716. arguments specified by the user when making a request so hooks can make a
  717. secondary request with the same parameters. This is especially necessary for
  718. authentication handler authors
  719. - certifi support was removed
  720. - Fixed bug where using OAuth 1 with body ``signature_type`` sent no data
  721. - Major proxy work thanks to @Lukasa including parsing of proxy authentication
  722. from the proxy url
  723. - Fix DigestAuth handling too many 401s
  724. - Update vendored urllib3 to include SSL bug fixes
  725. - Allow keyword arguments to be passed to ``json.loads()`` via the
  726. ``Response.json()`` method
  727. - Don't send ``Content-Length`` header by default on ``GET`` or ``HEAD``
  728. requests
  729. - Add ``elapsed`` attribute to ``Response`` objects to time how long a request
  730. took.
  731. - Fix ``RequestsCookieJar``
  732. - Sessions and Adapters are now picklable, i.e., can be used with the
  733. multiprocessing library
  734. - Update charade to version 1.0.3
  735. The change in how hooks are dispatched will likely cause a great deal of
  736. issues.
  737. 1.1.0 (2013-01-10)
  738. ++++++++++++++++++
  739. - CHUNKED REQUESTS
  740. - Support for iterable response bodies
  741. - Assume servers persist redirect params
  742. - Allow explicit content types to be specified for file data
  743. - Make merge_kwargs case-insensitive when looking up keys
  744. 1.0.3 (2012-12-18)
  745. ++++++++++++++++++
  746. - Fix file upload encoding bug
  747. - Fix cookie behavior
  748. 1.0.2 (2012-12-17)
  749. ++++++++++++++++++
  750. - Proxy fix for HTTPAdapter.
  751. 1.0.1 (2012-12-17)
  752. ++++++++++++++++++
  753. - Cert verification exception bug.
  754. - Proxy fix for HTTPAdapter.
  755. 1.0.0 (2012-12-17)
  756. ++++++++++++++++++
  757. - Massive Refactor and Simplification
  758. - Switch to Apache 2.0 license
  759. - Swappable Connection Adapters
  760. - Mountable Connection Adapters
  761. - Mutable ProcessedRequest chain
  762. - /s/prefetch/stream
  763. - Removal of all configuration
  764. - Standard library logging
  765. - Make Response.json() callable, not property.
  766. - Usage of new charade project, which provides python 2 and 3 simultaneous chardet.
  767. - Removal of all hooks except 'response'
  768. - Removal of all authentication helpers (OAuth, Kerberos)
  769. This is not a backwards compatible change.
  770. 0.14.2 (2012-10-27)
  771. +++++++++++++++++++
  772. - Improved mime-compatible JSON handling
  773. - Proxy fixes
  774. - Path hack fixes
  775. - Case-Insensitive Content-Encoding headers
  776. - Support for CJK parameters in form posts
  777. 0.14.1 (2012-10-01)
  778. +++++++++++++++++++
  779. - Python 3.3 Compatibility
  780. - Simply default accept-encoding
  781. - Bugfixes
  782. 0.14.0 (2012-09-02)
  783. ++++++++++++++++++++
  784. - No more iter_content errors if already downloaded.
  785. 0.13.9 (2012-08-25)
  786. +++++++++++++++++++
  787. - Fix for OAuth + POSTs
  788. - Remove exception eating from dispatch_hook
  789. - General bugfixes
  790. 0.13.8 (2012-08-21)
  791. +++++++++++++++++++
  792. - Incredible Link header support :)
  793. 0.13.7 (2012-08-19)
  794. +++++++++++++++++++
  795. - Support for (key, value) lists everywhere.
  796. - Digest Authentication improvements.
  797. - Ensure proxy exclusions work properly.
  798. - Clearer UnicodeError exceptions.
  799. - Automatic casting of URLs to strings (fURL and such)
  800. - Bugfixes.
  801. 0.13.6 (2012-08-06)
  802. +++++++++++++++++++
  803. - Long awaited fix for hanging connections!
  804. 0.13.5 (2012-07-27)
  805. +++++++++++++++++++
  806. - Packaging fix
  807. 0.13.4 (2012-07-27)
  808. +++++++++++++++++++
  809. - GSSAPI/Kerberos authentication!
  810. - App Engine 2.7 Fixes!
  811. - Fix leaking connections (from urllib3 update)
  812. - OAuthlib path hack fix
  813. - OAuthlib URL parameters fix.
  814. 0.13.3 (2012-07-12)
  815. +++++++++++++++++++
  816. - Use simplejson if available.
  817. - Do not hide SSLErrors behind Timeouts.
  818. - Fixed param handling with urls containing fragments.
  819. - Significantly improved information in User Agent.
  820. - client certificates are ignored when verify=False
  821. 0.13.2 (2012-06-28)
  822. +++++++++++++++++++
  823. - Zero dependencies (once again)!
  824. - New: Response.reason
  825. - Sign querystring parameters in OAuth 1.0
  826. - Client certificates no longer ignored when verify=False
  827. - Add openSUSE certificate support
  828. 0.13.1 (2012-06-07)
  829. +++++++++++++++++++
  830. - Allow passing a file or file-like object as data.
  831. - Allow hooks to return responses that indicate errors.
  832. - Fix Response.text and Response.json for body-less responses.
  833. 0.13.0 (2012-05-29)
  834. +++++++++++++++++++
  835. - Removal of Requests.async in favor of `grequests <https://github.com/kennethreitz/grequests>`_
  836. - Allow disabling of cookie persistence.
  837. - New implementation of safe_mode
  838. - cookies.get now supports default argument
  839. - Session cookies not saved when Session.request is called with return_response=False
  840. - Env: no_proxy support.
  841. - RequestsCookieJar improvements.
  842. - Various bug fixes.
  843. 0.12.1 (2012-05-08)
  844. +++++++++++++++++++
  845. - New ``Response.json`` property.
  846. - Ability to add string file uploads.
  847. - Fix out-of-range issue with iter_lines.
  848. - Fix iter_content default size.
  849. - Fix POST redirects containing files.
  850. 0.12.0 (2012-05-02)
  851. +++++++++++++++++++
  852. - EXPERIMENTAL OAUTH SUPPORT!
  853. - Proper CookieJar-backed cookies interface with awesome dict-like interface.
  854. - Speed fix for non-iterated content chunks.
  855. - Move ``pre_request`` to a more usable place.
  856. - New ``pre_send`` hook.
  857. - Lazily encode data, params, files.
  858. - Load system Certificate Bundle if ``certify`` isn't available.
  859. - Cleanups, fixes.
  860. 0.11.2 (2012-04-22)
  861. +++++++++++++++++++
  862. - Attempt to use the OS's certificate bundle if ``certifi`` isn't available.
  863. - Infinite digest auth redirect fix.
  864. - Multi-part file upload improvements.
  865. - Fix decoding of invalid %encodings in URLs.
  866. - If there is no content in a response don't throw an error the second time that content is attempted to be read.
  867. - Upload data on redirects.
  868. 0.11.1 (2012-03-30)
  869. +++++++++++++++++++
  870. * POST redirects now break RFC to do what browsers do: Follow up with a GET.
  871. * New ``strict_mode`` configuration to disable new redirect behavior.
  872. 0.11.0 (2012-03-14)
  873. +++++++++++++++++++
  874. * Private SSL Certificate support
  875. * Remove select.poll from Gevent monkeypatching
  876. * Remove redundant generator for chunked transfer encoding
  877. * Fix: Response.ok raises Timeout Exception in safe_mode
  878. 0.10.8 (2012-03-09)
  879. +++++++++++++++++++
  880. * Generate chunked ValueError fix
  881. * Proxy configuration by environment variables
  882. * Simplification of iter_lines.
  883. * New `trust_env` configuration for disabling system/environment hints.
  884. * Suppress cookie errors.
  885. 0.10.7 (2012-03-07)
  886. +++++++++++++++++++
  887. * `encode_uri` = False
  888. 0.10.6 (2012-02-25)
  889. +++++++++++++++++++
  890. * Allow '=' in cookies.
  891. 0.10.5 (2012-02-25)
  892. +++++++++++++++++++
  893. * Response body with 0 content-length fix.
  894. * New async.imap.
  895. * Don't fail on netrc.
  896. 0.10.4 (2012-02-20)
  897. +++++++++++++++++++
  898. * Honor netrc.
  899. 0.10.3 (2012-02-20)
  900. +++++++++++++++++++
  901. * HEAD requests don't follow redirects anymore.
  902. * raise_for_status() doesn't raise for 3xx anymore.
  903. * Make Session objects picklable.
  904. * ValueError for invalid schema URLs.
  905. 0.10.2 (2012-01-15)
  906. +++++++++++++++++++
  907. * Vastly improved URL quoting.
  908. * Additional allowed cookie key values.
  909. * Attempted fix for "Too many open files" Error
  910. * Replace unicode errors on first pass, no need for second pass.
  911. * Append '/' to bare-domain urls before query insertion.
  912. * Exceptions now inherit from RuntimeError.
  913. * Binary uploads + auth fix.
  914. * Bugfixes.
  915. 0.10.1 (2012-01-23)
  916. +++++++++++++++++++
  917. * PYTHON 3 SUPPORT!
  918. * Dropped 2.5 Support. (*Backwards Incompatible*)
  919. 0.10.0 (2012-01-21)
  920. +++++++++++++++++++
  921. * ``Response.content`` is now bytes-only. (*Backwards Incompatible*)
  922. * New ``Response.text`` is unicode-only.
  923. * If no ``Response.encoding`` is specified and ``chardet`` is available, ``Response.text`` will guess an encoding.
  924. * Default to ISO-8859-1 (Western) encoding for "text" subtypes.
  925. * Removal of `decode_unicode`. (*Backwards Incompatible*)
  926. * New multiple-hooks system.
  927. * New ``Response.register_hook`` for registering hooks within the pipeline.
  928. * ``Response.url`` is now Unicode.
  929. 0.9.3 (2012-01-18)
  930. ++++++++++++++++++
  931. * SSL verify=False bugfix (apparent on windows machines).
  932. 0.9.2 (2012-01-18)
  933. ++++++++++++++++++
  934. * Asynchronous async.send method.
  935. * Support for proper chunk streams with boundaries.
  936. * session argument for Session classes.
  937. * Print entire hook tracebacks, not just exception instance.
  938. * Fix response.iter_lines from pending next line.
  939. * Fix but in HTTP-digest auth w/ URI having query strings.
  940. * Fix in Event Hooks section.
  941. * Urllib3 update.
  942. 0.9.1 (2012-01-06)
  943. ++++++++++++++++++
  944. * danger_mode for automatic Response.raise_for_status()
  945. * Response.iter_lines refactor
  946. 0.9.0 (2011-12-28)
  947. ++++++++++++++++++
  948. * verify ssl is default.
  949. 0.8.9 (2011-12-28)
  950. ++++++++++++++++++
  951. * Packaging fix.
  952. 0.8.8 (2011-12-28)
  953. ++++++++++++++++++
  954. * SSL CERT VERIFICATION!
  955. * Release of Cerifi: Mozilla's cert list.
  956. * New 'verify' argument for SSL requests.
  957. * Urllib3 update.
  958. 0.8.7 (2011-12-24)
  959. ++++++++++++++++++
  960. * iter_lines last-line truncation fix
  961. * Force safe_mode for async requests
  962. * Handle safe_mode exceptions more consistently
  963. * Fix iteration on null responses in safe_mode
  964. 0.8.6 (2011-12-18)
  965. ++++++++++++++++++
  966. * Socket timeout fixes.
  967. * Proxy Authorization support.
  968. 0.8.5 (2011-12-14)
  969. ++++++++++++++++++
  970. * Response.iter_lines!
  971. 0.8.4 (2011-12-11)
  972. ++++++++++++++++++
  973. * Prefetch bugfix.
  974. * Added license to installed version.
  975. 0.8.3 (2011-11-27)
  976. ++++++++++++++++++
  977. * Converted auth system to use simpler callable objects.
  978. * New session parameter to API methods.
  979. * Display full URL while logging.
  980. 0.8.2 (2011-11-19)
  981. ++++++++++++++++++
  982. * New Unicode decoding system, based on over-ridable `Response.encoding`.
  983. * Proper URL slash-quote handling.
  984. * Cookies with ``[``, ``]``, and ``_`` allowed.
  985. 0.8.1 (2011-11-15)
  986. ++++++++++++++++++
  987. * URL Request path fix
  988. * Proxy fix.
  989. * Timeouts fix.
  990. 0.8.0 (2011-11-13)
  991. ++++++++++++++++++
  992. * Keep-alive support!
  993. * Complete removal of Urllib2
  994. * Complete removal of Poster
  995. * Complete removal of CookieJars
  996. * New ConnectionError raising
  997. * Safe_mode for error catching
  998. * prefetch parameter for request methods
  999. * OPTION method
  1000. * Async pool size throttling
  1001. * File uploads send real names
  1002. * Vendored in urllib3
  1003. 0.7.6 (2011-11-07)
  1004. ++++++++++++++++++
  1005. * Digest authentication bugfix (attach query data to path)
  1006. 0.7.5 (2011-11-04)
  1007. ++++++++++++++++++
  1008. * Response.content = None if there was an invalid response.
  1009. * Redirection auth handling.
  1010. 0.7.4 (2011-10-26)
  1011. ++++++++++++++++++
  1012. * Session Hooks fix.
  1013. 0.7.3 (2011-10-23)
  1014. ++++++++++++++++++
  1015. * Digest Auth fix.
  1016. 0.7.2 (2011-10-23)
  1017. ++++++++++++++++++
  1018. * PATCH Fix.
  1019. 0.7.1 (2011-10-23)
  1020. ++++++++++++++++++
  1021. * Move away from urllib2 authentication handling.
  1022. * Fully Remove AuthManager, AuthObject, &c.
  1023. * New tuple-based auth system with handler callbacks.
  1024. 0.7.0 (2011-10-22)
  1025. ++++++++++++++++++
  1026. * Sessions are now the primary interface.
  1027. * Deprecated InvalidMethodException.
  1028. * PATCH fix.
  1029. * New config system (no more global settings).
  1030. 0.6.6 (2011-10-19)
  1031. ++++++++++++++++++
  1032. * Session parameter bugfix (params merging).
  1033. 0.6.5 (2011-10-18)
  1034. ++++++++++++++++++
  1035. * Offline (fast) test suite.
  1036. * Session dictionary argument merging.
  1037. 0.6.4 (2011-10-13)
  1038. ++++++++++++++++++
  1039. * Automatic decoding of unicode, based on HTTP Headers.
  1040. * New ``decode_unicode`` setting.
  1041. * Removal of ``r.read/close`` methods.
  1042. * New ``r.faw`` interface for advanced response usage.*
  1043. * Automatic expansion of parameterized headers.
  1044. 0.6.3 (2011-10-13)
  1045. ++++++++++++++++++
  1046. * Beautiful ``requests.async`` module, for making async requests w/ gevent.
  1047. 0.6.2 (2011-10-09)
  1048. ++++++++++++++++++
  1049. * GET/HEAD obeys allow_redirects=False.
  1050. 0.6.1 (2011-08-20)
  1051. ++++++++++++++++++
  1052. * Enhanced status codes experience ``\o/``
  1053. * Set a maximum number of redirects (``settings.max_redirects``)
  1054. * Full Unicode URL support
  1055. * Support for protocol-less redirects.
  1056. * Allow for arbitrary request types.
  1057. * Bugfixes
  1058. 0.6.0 (2011-08-17)
  1059. ++++++++++++++++++
  1060. * New callback hook system
  1061. * New persistent sessions object and context manager
  1062. * Transparent Dict-cookie handling
  1063. * Status code reference object
  1064. * Removed Response.cached
  1065. * Added Response.request
  1066. * All args are kwargs
  1067. * Relative redirect support
  1068. * HTTPError handling improvements
  1069. * Improved https testing
  1070. * Bugfixes
  1071. 0.5.1 (2011-07-23)
  1072. ++++++++++++++++++
  1073. * International Domain Name Support!
  1074. * Access headers without fetching entire body (``read()``)
  1075. * Use lists as dicts for parameters
  1076. * Add Forced Basic Authentication
  1077. * Forced Basic is default authentication type
  1078. * ``python-requests.org`` default User-Agent header
  1079. * CaseInsensitiveDict lower-case caching
  1080. * Response.history bugfix
  1081. 0.5.0 (2011-06-21)
  1082. ++++++++++++++++++
  1083. * PATCH Support
  1084. * Support for Proxies
  1085. * HTTPBin Test Suite
  1086. * Redirect Fixes
  1087. * settings.verbose stream writing
  1088. * Querystrings for all methods
  1089. * URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as explicitly raised
  1090. ``r.requests.get('hwe://blah'); r.raise_for_status()``
  1091. 0.4.1 (2011-05-22)
  1092. ++++++++++++++++++
  1093. * Improved Redirection Handling
  1094. * New 'allow_redirects' param for following non-GET/HEAD Redirects
  1095. * Settings module refactoring
  1096. 0.4.0 (2011-05-15)
  1097. ++++++++++++++++++
  1098. * Response.history: list of redirected responses
  1099. * Case-Insensitive Header Dictionaries!
  1100. * Unicode URLs
  1101. 0.3.4 (2011-05-14)
  1102. ++++++++++++++++++
  1103. * Urllib2 HTTPAuthentication Recursion fix (Basic/Digest)
  1104. * Internal Refactor
  1105. * Bytes data upload Bugfix
  1106. 0.3.3 (2011-05-12)
  1107. ++++++++++++++++++
  1108. * Request timeouts
  1109. * Unicode url-encoded data
  1110. * Settings context manager and module
  1111. 0.3.2 (2011-04-15)
  1112. ++++++++++++++++++
  1113. * Automatic Decompression of GZip Encoded Content
  1114. * AutoAuth Support for Tupled HTTP Auth
  1115. 0.3.1 (2011-04-01)
  1116. ++++++++++++++++++
  1117. * Cookie Changes
  1118. * Response.read()
  1119. * Poster fix
  1120. 0.3.0 (2011-02-25)
  1121. ++++++++++++++++++
  1122. * Automatic Authentication API Change
  1123. * Smarter Query URL Parameterization
  1124. * Allow file uploads and POST data together
  1125. * New Authentication Manager System
  1126. - Simpler Basic HTTP System
  1127. - Supports all build-in urllib2 Auths
  1128. - Allows for custom Auth Handlers
  1129. 0.2.4 (2011-02-19)
  1130. ++++++++++++++++++
  1131. * Python 2.5 Support
  1132. * PyPy-c v1.4 Support
  1133. * Auto-Authentication tests
  1134. * Improved Request object constructor
  1135. 0.2.3 (2011-02-15)
  1136. ++++++++++++++++++
  1137. * New HTTPHandling Methods
  1138. - Response.__nonzero__ (false if bad HTTP Status)
  1139. - Response.ok (True if expected HTTP Status)
  1140. - Response.error (Logged HTTPError if bad HTTP Status)
  1141. - Response.raise_for_status() (Raises stored HTTPError)
  1142. 0.2.2 (2011-02-14)
  1143. ++++++++++++++++++
  1144. * Still handles request in the event of an HTTPError. (Issue #2)
  1145. * Eventlet and Gevent Monkeypatch support.
  1146. * Cookie Support (Issue #1)
  1147. 0.2.1 (2011-02-14)
  1148. ++++++++++++++++++
  1149. * Added file attribute to POST and PUT requests for multipart-encode file uploads.
  1150. * Added Request.url attribute for context and redirects
  1151. 0.2.0 (2011-02-14)
  1152. ++++++++++++++++++
  1153. * Birth!
  1154. 0.0.1 (2011-02-13)
  1155. ++++++++++++++++++
  1156. * Frustration
  1157. * Conception