7
- \[Short description of non-trivial change.\]
12
- Moved `headers` input type back to `Mapping` to avoid invariance issues
13
with `MutableMapping` and inferred dict types. Users calling
14
`Request.headers.update()` may need to narrow typing in their code. (#7441)
21
- Widened `json` input type from `dict` and `list` to `Mapping`
22
and `Sequence`. (#7436)
23
- Changed `headers` input type to MutableMapping and removed `None` from
24
`Request.headers` typing to improve handling for users. (#7431)
25
- `Response.reason` moved from `str | None` to `str` to improve handling
27
- Fixed a bug where some bodies with custom `__getattr__` implementations
28
weren't being properly detected as Iterables. (#7433)
35
- Requests 2.34.0 introduces inline types, replacing those provided by
36
typeshed. Public API types should be fully compatible with mypy, pyright,
37
and ty. We believe types are comprehensive but if you find issues, please
38
report them to the pinned tracking issue.
40
Special thanks to @bastimeyer, @cthoyt, @edgarrmondragon, and @srittau for
41
helping review and test the types ahead of the release. (#7272)
44
- Digest Auth hashing algorithms have added `usedforsecurity=False` to clarify
45
security considerations. (#7310)
46
- Requests added support for Python 3.15 based on beta1. Downstream projects
47
should be able to start testing prior to its release in October. (#7422)
48
- Requests added support for Python 3.14t. (#7419)
44
- Digest Auth hashing algorithms have added `usedforsecurity=False` to clarify
45
security considerations. (#7310)
46
- Requests added support for Python 3.15 based on beta1. Downstream projects
47
should be able to start testing prior to its release in October. (#7422)
48
- Requests added support for Python 3.14t. (#7419)
51
- ``Response.history`` no longer contains a reference to itself, preventing
52
accidental looping when traversing the history list. (#7328)
53
- Requests no longer performs greedy matching on no_proxy domains. The
54
proxy_bypass implementation has been updated with CPython's fix from
56
- Requests no longer incorrectly strips duplicate leading slashes in
57
URI paths. This should address user issues with specific presigned
58
URLs. Note the full fix requires urllib3 2.7.0+. (#7315)
65
- Fixed test cleanup for CVE-2026-25645 to avoid leaving unnecessary
66
files in the tmp directory. (#7305)
67
- Fixed Content-Type header parsing for malformed values. (#7309)
68
- Improved error consistency for malformed header values. (#7308)
74
- 📣 Requests is adding inline types. If you have a typed code base that
75
uses Requests, please take a look at #7271. Give it a try, and report
76
any gaps or feedback you may have in the issue. 📣
79
- CVE-2026-25645 ``requests.utils.extract_zipped_paths`` now extracts
80
contents to a non-deterministic location to prevent malicious file
81
replacement. This does not affect default usage of Requests, only
82
applications calling the utility function directly.
79
- CVE-2026-25645 ``requests.utils.extract_zipped_paths`` now extracts
80
contents to a non-deterministic location to prevent malicious file
81
replacement. This does not affect default usage of Requests, only
82
applications calling the utility function directly.
85
- Migrated to a PEP 517 build system using setuptools. (#7012)
88
- Fixed an issue where an empty netrc entry could cause
89
malformed authentication to be applied to Requests on
93
- Dropped support for Python 3.9 following its end of support. (#7196)
96
- Various typo fixes and doc improvements.
104
- The SSLContext caching feature originally introduced in 2.32.0 has created
105
a new class of issues in Requests that have had negative impact across a number
106
of use cases. The Requests team has decided to revert this feature as long term
107
maintenance of it is proving to be unsustainable in its current iteration.
110
- Added support for Python 3.14.
111
- Dropped support for Python 3.8 following its end of support.
117
- CVE-2024-47081 Fixed an issue where a maliciously crafted URL and trusted
118
environment will retrieve credentials for the wrong hostname/machine from a
122
- Numerous documentation improvements
118
environment will retrieve credentials for the wrong hostname/machine from a
122
- Numerous documentation improvements
125
- Added support for pypy 3.11 for Linux and macOS.
126
- Dropped support for pypy 3.9 following its end of support.
133
- Fixed bug breaking the ability to specify custom SSLContexts in sub-classes of
135
- Fixed issue where Requests started failing to run on Python versions compiled
136
without the `ssl` module. (#6724)
142
- To provide a more stable migration for custom HTTPAdapters impacted
143
by the CVE changes in 2.32.0, we've renamed `_get_connection` to
144
a new public API, `get_connection_with_tls_context`. Existing custom
145
HTTPAdapters will need to migrate their code to use this new API.
146
`get_connection` is considered deprecated in all versions of Requests>=2.32.0.
148
A minimal (2-line) example has been provided in the linked PR to ease
149
migration, but we strongly urge users to evaluate if their custom adapter
150
is subject to the same issue described in CVE-2024-35195. (#6710)
156
- Add missing test certs to the sdist distributed on PyPI.
163
- Fixed an issue where setting `verify=False` on the first request from a
164
Session will cause subsequent requests to the _same origin_ to also ignore
165
cert verification, regardless of the value of `verify`.
166
(https://github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56)
163
- Fixed an issue where setting `verify=False` on the first request from a
164
Session will cause subsequent requests to the _same origin_ to also ignore
165
cert verification, regardless of the value of `verify`.
166
(https://github.com/psf/requests/security/advisories/GHSA-9wx4-h78v-vm56)
169
- `verify=True` now reuses a global SSLContext which should improve
170
request time variance between first and subsequent requests. It should
171
also minimize certificate load time on Windows systems when using a Python
172
version built with OpenSSL 3.x. (#6667)
173
- Requests now supports optional use of character detection
174
(`chardet` or `charset_normalizer`) when repackaged or vendored.
175
This enables `pip` and other projects to minimize their vendoring
176
surface area. The `Response.text()` and `apparent_encoding` APIs
177
will default to `utf-8` if neither library is present. (#6702)
180
- Fixed bug in length detection where emoji length was incorrectly
181
calculated in the request content-length. (#6589)
182
- Fixed deserialization bug in JSONDecodeError. (#6629)
183
- Fixed bug where an extra leading `/` (path separator) could lead
184
urllib3 to unnecessarily reparse the request URI. (#6644)
188
- Requests has officially added support for CPython 3.12 (#6503)
189
- Requests has officially added support for PyPy 3.9 and 3.10 (#6641)
190
- Requests has officially dropped support for CPython 3.7 (#6642)
191
- Requests has officially dropped support for PyPy 3.7 and 3.8 (#6641)
188
- Requests has officially added support for CPython 3.12 (#6503)
189
- Requests has officially added support for PyPy 3.9 and 3.10 (#6641)
190
- Requests has officially dropped support for CPython 3.7 (#6642)
191
- Requests has officially dropped support for PyPy 3.7 and 3.8 (#6641)
194
- Various typo fixes and doc improvements.
197
- Requests has started adopting some modern packaging practices.
198
The source files for the projects (formerly `requests`) is now located
199
in `src/requests` in the Requests sdist. (#6506)
200
- Starting in Requests 2.33.0, Requests will migrate to a PEP 517 build system
201
using `hatchling`. This should not impact the average user, but extremely old
202
versions of packaging utilities may have issues with the new packaging format.
209
- Versions of Requests between v2.3.0 and v2.30.0 are vulnerable to potential
210
forwarding of `Proxy-Authorization` headers to destination servers when
211
following HTTPS redirects.
213
When proxies are defined with user info (`https://user:pass@proxy:8080`), Requests
214
will construct a `Proxy-Authorization` header that is attached to the request to
215
authenticate with the proxy.
217
In cases where Requests receives a redirect response, it previously reattached
218
the `Proxy-Authorization` header incorrectly, resulting in the value being
219
sent through the tunneled connection to the destination server. Users who rely on
220
defining their proxy credentials in the URL are *strongly* encouraged to upgrade
221
to Requests 2.31.0+ to prevent unintentional leakage and rotate their proxy
222
credentials once the change has been fully deployed.
218
the `Proxy-Authorization` header incorrectly, resulting in the value being
219
sent through the tunneled connection to the destination server. Users who rely on
220
defining their proxy credentials in the URL are *strongly* encouraged to upgrade
221
to Requests 2.31.0+ to prevent unintentional leakage and rotate their proxy
222
credentials once the change has been fully deployed.
224
Users who do not use a proxy or do not supply their proxy credentials through
225
the user information portion of their proxy URL are not subject to this
228
Full details can be read in our [Github Security Advisory](https://github.com/psf/requests/security/advisories/GHSA-j8r2-6x86-q33q)
229
and [CVE-2023-32681](https://nvd.nist.gov/vuln/detail/CVE-2023-32681).
236
- ⚠️ Added support for urllib3 2.0. ⚠️
238
This may contain minor breaking changes so we advise careful testing and
239
reviewing https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html
242
Users who wish to stay on urllib3 1.x can pin to `urllib3<2`.
249
- Requests now defers chunked requests to the urllib3 implementation to improve
250
standardization. (#6226)
251
- Requests relaxes header component requirements to support bytes/str subclasses. (#6356)
258
- Requests now supports charset\_normalizer 3.x. (#6261)
262
- Updated MissingSchema exception to suggest https scheme rather than http. (#6188)
269
- Speed optimization in `iter_content` with transition to `yield from`. (#6170)
273
- Added support for chardet 5.0.0 (#6179)
274
- Added support for charset-normalizer 2.1.0 (#6169)
281
- ⚠️ Requests has officially dropped support for Python 2.7. ⚠️ (#6091)
282
- Requests has officially dropped support for Python 3.6 (including pypy3.6). (#6091)
286
- Wrap JSON parsing issues in Request's JSONDecodeError for payloads without
287
an encoding to make `json()` API consistent. (#6097)
288
- Parse header components consistently, raising an InvalidHeader error in
289
all invalid cases. (#6154)
290
- Added provisional 3.11 support with current beta build. (#6155)
291
- Requests got a makeover and we decided to paint it black. (#6095)
295
- Fixed bug where setting `CURL_CA_BUNDLE` to an empty string would disable
296
cert verification. All Requests 2.x versions before 2.28.0 are affected. (#6074)
297
- Fixed urllib3 exception leak, wrapping `urllib3.exceptions.SSLError` with
298
`requests.exceptions.SSLError` for `content` and `iter_content`. (#6057)
299
- Fixed issue where invalid Windows registry entries caused proxy resolution
300
to raise an exception rather than ignoring the entry. (#6149)
301
- Fixed issue where entire payload could be included in the error message for
302
JSONDecodeError. (#6036)
298
`requests.exceptions.SSLError` for `content` and `iter_content`. (#6057)
299
- Fixed issue where invalid Windows registry entries caused proxy resolution
300
to raise an exception rather than ignoring the entry. (#6149)
301
- Fixed issue where entire payload could be included in the error message for
302
JSONDecodeError. (#6036)
309
- Fixed parsing issue that resulted in the `auth` component being
310
dropped from proxy URLs. (#6028)
317
- Officially added support for Python 3.10. (#5928)
319
- Added a `requests.exceptions.JSONDecodeError` to unify JSON exceptions between
320
Python 2 and 3. This gets raised in the `response.json()` method, and is
321
backwards compatible as it inherits from previously thrown exceptions.
322
Can be caught from `requests.exceptions.RequestException` as well. (#5856)
324
- Improved error text for misnamed `InvalidSchema` and `MissingSchema`
325
exceptions. This is a temporary fix until exceptions can be renamed
326
(Schema->Scheme). (#6017)
328
- Improved proxy parsing for proxy URLs missing a scheme. This will address
329
recent changes to `urlparse` in Python 3.9+. (#5917)
333
- Fixed defect in `extract_zipped_paths` which could result in an infinite loop
334
for some paths. (#5851)
336
- Fixed handling for `AttributeError` when calculating length of files obtained
337
by `Tarfile.extractfile()`. (#5239)
333
- Fixed defect in `extract_zipped_paths` which could result in an infinite loop
334
for some paths. (#5851)
336
- Fixed handling for `AttributeError` when calculating length of files obtained
337
by `Tarfile.extractfile()`. (#5239)
339
- Fixed urllib3 exception leak, wrapping `urllib3.exceptions.InvalidHeader` with
340
`requests.exceptions.InvalidHeader`. (#5914)
342
- Fixed bug where two Host headers were sent for chunked requests. (#5391)
344
- Fixed regression in Requests 2.26.0 where `Proxy-Authorization` was
345
incorrectly stripped from all requests sent with `Session.send`. (#5924)
347
- Fixed performance regression in 2.26.0 for hosts with a large number of
348
proxies available in the environment. (#5924)
350
- Fixed idna exception leak, wrapping `UnicodeError` with
351
`requests.exceptions.InvalidURL` for URLs with a leading dot (.) in the
356
- Requests support for Python 2.7 and 3.6 will be ending in 2022. While we
357
don't have exact dates, Requests 2.27.x is likely to be the last release
358
series providing support.
365
- Requests now supports Brotli compression, if either the `brotli` or
366
`brotlicffi` package is installed. (#5783)
368
- `Session.send` now correctly resolves proxy configurations from both
369
the Session and Request. Behavior now matches `Session.request`. (#5681)
373
- Fixed a race condition in zip extraction when using Requests in parallel
374
from zip archive. (#5707)
373
- Fixed a race condition in zip extraction when using Requests in parallel
374
from zip archive. (#5707)
378
- Instead of `chardet`, use the MIT-licensed `charset_normalizer` for Python3
379
to remove license ambiguity for projects bundling requests. If `chardet`
380
is already installed on your machine it will be used instead of `charset_normalizer`
381
to keep backwards compatibility. (#5797)
383
You can also install `chardet` while installing requests by
384
specifying `[use_chardet_on_py3]` extra as follows:
387
pip install "requests[use_chardet_on_py3]"
390
Python2 still depends upon the `chardet` module.
392
- Requests now supports `idna` 3.x on Python 3. `idna` 2.x will continue to
393
be used on Python 2 installations. (#5711)
397
- The `requests[security]` extra has been converted to a no-op install.
398
PyOpenSSL is no longer the recommended secure option for Requests. (#5867)
400
- Requests has officially dropped support for Python 3.5. (#5867)
407
- Requests now treats `application/json` as `utf8` by default. Resolving
408
inconsistencies between `r.text` and `r.json` output. (#5673)
412
- Requests now supports chardet v4.x.
419
- Added support for NETRC environment variable. (#5643)
423
- Requests now supports urllib3 v1.26.
419
- Added support for NETRC environment variable. (#5643)
423
- Requests now supports urllib3 v1.26.
427
- Requests v2.25.x will be the last release series with support for Python 3.5.
428
- The `requests[security]` extra is officially deprecated and will be removed
436
- pyOpenSSL TLS implementation is now only used if Python
437
either doesn't have an `ssl` module or doesn't support
438
SNI. Previously pyOpenSSL was unconditionally used if available.
439
This applies even if pyOpenSSL is installed via the
440
`requests[security]` extra (#5443)
442
- Redirect resolution should now only occur when
443
`allow_redirects` is True. (#5492)
445
- No longer perform unnecessary Content-Length calculation for
446
requests that won't use it. (#5496)
453
- Remove defunct reference to `prefetch` in Session `__attrs__` (#5110)
457
- Requests no longer outputs password in basic auth usage warning. (#5099)
461
- Pinning for `chardet` and `idna` now uses major version instead of minor.
462
This hopefully reduces the need for releases every time a dependency is updated.
469
- Requests now supports urllib3 v1.25.2.
470
(note: 1.25.0 and 1.25.1 are incompatible)
469
- Requests now supports urllib3 v1.25.2.
470
(note: 1.25.0 and 1.25.1 are incompatible)
474
- Requests has officially stopped support for Python 3.4.
481
- Requests now supports idna v2.8.
488
- Fixed bug with unintended Authorization header stripping for
489
redirects using default ports (http/80, https/443).
496
- Content-Type header parsing is now case-insensitive (e.g.
497
charset=utf8 v Charset=utf8).
498
- Fixed exception leak where certain redirect urls would raise
499
uncaught urllib3 exceptions.
500
- Requests removes Authorization header from requests redirected
501
from https to http on the same hostname. (CVE-2018-18074)
502
- `should_bypass_proxies` now handles URIs without hostnames (e.g.
507
- Requests now supports urllib3 v1.24.
511
- Requests has officially stopped support for Python 2.6.
518
- Fixed issue where status\_codes.py's `init` function failed trying
519
to append to a `__doc__` value of `None`.
526
- Warn user about possible slowdown when using cryptography version
528
- Check for invalid host in proxy URL, before forwarding request to
530
- Fragments are now properly maintained across redirects. (RFC7231
532
- Removed use of cgi module to expedite library load time.
533
- Added support for SHA-256 and SHA-512 digest auth algorithms.
534
- Minor performance improvement to `Request.content`.
535
- Migrate to using collections.abc for 3.7 compatibility.
532
- Removed use of cgi module to expedite library load time.
533
- Added support for SHA-256 and SHA-512 digest auth algorithms.
534
- Minor performance improvement to `Request.content`.
535
- Migrate to using collections.abc for 3.7 compatibility.
539
- Parsing empty `Link` headers with `parse_header_links()` no longer
540
return one bogus entry.
541
- Fixed issue where loading the default certificate bundle from a zip
542
archive would raise an `IOError`.
543
- Fixed issue with unexpected `ImportError` on windows system which do
544
not support `winreg` module.
545
- DNS resolution in proxy bypass no longer includes the username and
546
password in the request. This also fixes the issue of DNS queries
548
- Properly normalize adapter prefixes for url comparison.
549
- Passing `None` as a file pointer to the `files` param no longer
551
- Calling `copy` on a `RequestsCookieJar` will now preserve the cookie
556
- We now support idna v2.7.
557
- We now support urllib3 v1.23.
564
- Error messages for invalid headers now include the header name for
569
- We now support idna v2.6.
576
- Running `$ python -m requests.help` now includes the installed
576
- Running `$ python -m requests.help` now includes the installed
581
- Fixed issue where Requests would raise `ConnectionError` instead of
582
`SSLError` when encountering SSL problems when using urllib3 v1.22.
589
- `requests.help` no longer fails on Python 2.6 due to the absence of
590
`ssl.OPENSSL_VERSION_NUMBER`.
594
- We now support urllib3 v1.22.
601
- Fix an error in the packaging whereby the `*.whl` contained
602
incorrect data that regressed the fix in v2.17.3.
609
- `Response` is now a context manager, so can be used directly in a
610
`with` statement without first having to be wrapped by
611
`contextlib.closing()`.
615
- Resolve installation failure if multiprocessing is not available
616
- Resolve tests crash if multiprocessing is not able to determine the
618
- Resolve error swallowing in utils set\_environ generator
625
- Improved `packages` namespace identity support, for monkeypatching
633
- Improved `packages` namespace identity support, for monkeypatching
633
- Improved `packages` namespace identity support, for monkeypatching
641
- Improved `packages` namespace identity support, for monkeypatching
649
- Removal of the 301 redirect cache. This improves thread-safety.
654
- Improvements to `$ python -m requests.help`.
659
- Introduction of the `$ python -m requests.help` command, for
660
debugging with maintainers!
665
- Further restored the `requests.packages` namespace for compatibility
671
- Further restored the `requests.packages` namespace for compatibility
674
No code modification (noted below) should be necessary any longer.
679
- Restored the `requests.packages` namespace for compatibility
681
- Bugfix for `urllib3` version parsing.
683
**Note**: code that was written to import against the
684
`requests.packages` namespace previously will have to import code that
685
rests at this module-level now.
689
from requests.packages.urllib3.poolmanager import PoolManager
691
Will need to be re-written to be:
693
from requests.packages import urllib3
694
urllib3.poolmanager.PoolManager
691
Will need to be re-written to be:
693
from requests.packages import urllib3
694
urllib3.poolmanager.PoolManager
698
from urllib3.poolmanager import PoolManager
703
- Unvendor ALL the things!
708
- Everyone makes mistakes.
715
- Introduction of the `Response.next` property, for getting the next
716
`PreparedResponse` from a redirect chain (when
717
`allow_redirects=False`).
718
- Internal refactoring of `__version__` module.
722
- Restored once-optional parameter for
723
`requests.utils.get_environ_proxies()`.
730
- Changed a less-than to an equal-to and an or in the dependency
731
markers to widen compatibility with older setuptools releases.
738
- Changed the dependency markers to widen compatibility with older pip
746
- It is now possible to pass `no_proxy` as a key to the `proxies`
747
dictionary to provide handling similar to the `NO_PROXY` environment
749
- When users provide invalid paths to certificate bundle files or
750
directories Requests now raises `IOError`, rather than failing at
751
the time of the HTTPS request with a fairly inscrutable certificate
753
- The behavior of `SessionRedirectMixin` was slightly altered.
754
`resolve_redirects` will now detect a redirect by calling
755
`get_redirect_target(response)` instead of directly querying
756
`Response.is_redirect` and `Response.headers['location']`. Advanced
757
users will be able to process malformed redirects more easily.
758
- Changed the internal calculation of elapsed request time to have
759
higher resolution on Windows.
760
- Added `win_inet_pton` as conditional dependency for the `[socks]`
761
extra on Windows with Python 2.7.
762
- Changed the proxy bypass implementation on Windows: the proxy bypass
763
check doesn't use forward and reverse DNS requests anymore
764
- URLs with schemes that begin with `http` but are not `http` or
765
`https` no longer have their host parts forced to lowercase.
761
extra on Windows with Python 2.7.
762
- Changed the proxy bypass implementation on Windows: the proxy bypass
763
check doesn't use forward and reverse DNS requests anymore
764
- URLs with schemes that begin with `http` but are not `http` or
765
`https` no longer have their host parts forced to lowercase.
769
- Much improved handling of non-ASCII `Location` header values in
770
redirects. Fewer `UnicodeDecodeErrors` are encountered on Python 2,
771
and Python 3 now correctly understands that Latin-1 is unlikely to
772
be the correct encoding.
773
- If an attempt to `seek` file to find out its length fails, we now
774
appropriately handle that by aborting our content-length
776
- Restricted `HTTPDigestAuth` to only respond to auth challenges made
777
on 4XX responses, rather than to all auth challenges.
778
- Fixed some code that was firing `DeprecationWarning` on Python 3.6.
779
- The dismayed person emoticon (`/o\\`) no longer has a big head. I'm
780
sure this is what you were all worrying about most.
784
- Updated bundled urllib3 to v1.21.1.
785
- Updated bundled chardet to v3.0.2.
786
- Updated bundled idna to v2.5.
787
- Updated bundled certifi to 2017.4.17.
794
- Only load the `idna` library when we've determined we need it. This
795
will save some memory for users.
799
- Updated bundled urllib3 to 1.20.
800
- Updated bundled idna to 2.2.
799
- Updated bundled urllib3 to 1.20.
800
- Updated bundled idna to 2.2.
807
- Fixed an issue with JSON encoding detection, specifically detecting
808
big-endian UTF-32 with BOM.
815
- Fixed regression from 2.12.2 where non-string types were rejected in
816
the basic auth parameters. While support for this behaviour has been
817
re-added, the behaviour is deprecated and will be removed in the
825
- Fixed regression from v2.12.1 for URLs with schemes that begin with
826
"http". These URLs have historically been processed as though they
827
were HTTP-schemed URLs, and so have had parameters added. This was
828
removed in v2.12.2 in an overzealous attempt to resolve problems
829
with IDNA-encoding those URLs. This change was reverted: the other
830
fixes for IDNA-encoding have been judged to be sufficient to return
831
to the behaviour Requests had before v2.12.0.
838
- Fixed several issues with IDNA-encoding URLs that are technically
839
invalid but which are widely accepted. Requests will now attempt to
840
IDNA-encode a URL if it can but, if it fails, and the host contains
841
only ASCII characters, it will be passed through optimistically.
842
This will allow users to opt-in to using IDNA2003 themselves if they
843
want to, and will also allow technically invalid but still common
845
- Fixed an issue where URLs with leading whitespace would raise
846
`InvalidSchema` errors.
847
- Fixed an issue where some URLs without the HTTP or HTTPS schemes
848
would still have HTTP URL preparation applied to them.
849
- Fixed an issue where Unicode strings could not be used in basic
851
- Fixed an issue encountered by some Requests plugins where
852
constructing a Response object would cause `Response.content` to
853
raise an `AttributeError`.
849
- Fixed an issue where Unicode strings could not be used in basic
851
- Fixed an issue encountered by some Requests plugins where
852
constructing a Response object would cause `Response.content` to
853
raise an `AttributeError`.
860
- Updated setuptools 'security' extra for the new PyOpenSSL backend in
865
- Updated bundled urllib3 to 1.19.1.
872
- Updated support for internationalized domain names from IDNA2003 to
873
IDNA2008. This updated support is required for several forms of IDNs
874
and is mandatory for .de domains.
875
- Much improved heuristics for guessing content lengths: Requests will
876
no longer read an entire `StringIO` into memory.
877
- Much improved logic for recalculating `Content-Length` headers for
878
`PreparedRequest` objects.
879
- Improved tolerance for file-like objects that have no `tell` method
880
but do have a `seek` method.
881
- Anything that is a subclass of `Mapping` is now treated like a
882
dictionary by the `data=` keyword argument.
883
- Requests now tolerates empty passwords in proxy credentials, rather
884
than stripping the credentials.
885
- If a request is made with a file-like object as the body and that
886
request is redirected with a 307 or 308 status code, Requests will
887
now attempt to rewind the body object so it can be replayed.
883
- Requests now tolerates empty passwords in proxy credentials, rather
884
than stripping the credentials.
885
- If a request is made with a file-like object as the body and that
886
request is redirected with a 307 or 308 status code, Requests will
887
now attempt to rewind the body object so it can be replayed.
891
- When calling `response.close`, the call to `close` will be
892
propagated through to non-urllib3 backends.
893
- Fixed issue where the `ALL_PROXY` environment variable would be
894
preferred over scheme-specific variables like `HTTP_PROXY`.
895
- Fixed issue where non-UTF8 reason phrases got severely mangled by
896
falling back to decoding using ISO 8859-1 instead.
897
- Fixed a bug where Requests would not correctly correlate cookies set
898
when using custom Host headers if those Host headers did not use the
899
native string type for the platform.
903
- Updated bundled urllib3 to 1.19.
904
- Updated bundled certifi certs to 2016.09.26.
911
- Fixed a bug when using `iter_content` with `decode_unicode=True` for
912
streamed bodies would raise `AttributeError`. This bug was
914
- Strip Content-Type and Transfer-Encoding headers from the header
915
block when following a redirect that transforms the verb from
915
block when following a redirect that transforms the verb from
923
- Added support for the `ALL_PROXY` environment variable.
924
- Reject header values that contain leading whitespace or newline
925
characters to reduce risk of header smuggling.
929
- Fixed occasional `TypeError` when attempting to decode a JSON
930
response that occurred in an error case. Now correctly returns a
932
- Requests would incorrectly ignore a non-CIDR IP address in the
933
`NO_PROXY` environment variables: Requests now treats it as a
935
- Fixed a bug when sending JSON data that could cause us to encounter
936
obscure OpenSSL errors in certain network conditions (yes, really).
937
- Added type checks to ensure that `iter_content` only accepts
938
integers and `None` for chunk sizes.
939
- Fixed issue where responses whose body had not been fully consumed
940
would have the underlying connection closed but not returned to the
941
connection pool, which could cause Requests to hang in situations
942
where the `HTTPAdapter` had been configured to use a blocking
947
- Updated bundled urllib3 to 1.16.
948
- Some previous releases accidentally accepted non-strings as
949
acceptable header values. This release does not.
948
- Some previous releases accidentally accepted non-strings as
949
acceptable header values. This release does not.
956
- SOCKS Proxy Support! (requires PySocks;
957
`$ pip install requests[socks]`)
961
- Updated bundled urllib3 to 1.15.1.
968
- Change built-in CaseInsensitiveDict (used for headers) to use
969
OrderedDict as its underlying datastore.
973
- Don't use redirect\_cache if allow\_redirects=False
974
- When passed objects that throw exceptions from `tell()`, send them
975
via chunked transfer encoding instead of failing.
976
- Raise a ProxyError for proxy related connection issues.
983
- Resolve regression introduced in 2.9.0 that made it impossible to
984
send binary strings as bodies in Python 3.
985
- Fixed errors when calculating cookie expiration dates in certain
990
- Updated bundled urllib3 to 1.13.1.
995
**Minor Improvements** (Backwards compatible)
997
- The `verify` keyword argument now supports being passed a path to a
998
directory of CA certificates, not just a single-file bundle.
999
- Warnings are now emitted when sending files opened in text mode.
1000
- Added the 511 Network Authentication Required status code to the
1001
status code registry.
997
- The `verify` keyword argument now supports being passed a path to a
998
directory of CA certificates, not just a single-file bundle.
999
- Warnings are now emitted when sending files opened in text mode.
1000
- Added the 511 Network Authentication Required status code to the
1001
status code registry.
1005
- For file-like objects that are not sought to the very beginning, we
1006
now send the content length for the number of bytes we will actually
1007
read, rather than the total size of the file, allowing partial file
1009
- When uploading file-like objects, if they are empty or have no
1010
obvious content length we set `Transfer-Encoding: chunked` rather
1011
than `Content-Length: 0`.
1012
- We correctly receive the response in buffered mode when uploading
1014
- We now handle being passed a query string as a bytestring on Python
1015
3, by decoding it as UTF-8.
1016
- Sessions are now closed in all cases (exceptional and not) when
1017
using the functional API rather than leaking and waiting for the
1018
garbage collector to clean them up.
1019
- Correctly handle digest auth headers with a malformed `qop`
1020
directive that contains no token, by treating it the same as if no
1021
`qop` directive was provided at all.
1022
- Minor performance improvements when removing specific cookies by
1027
- Updated urllib3 to 1.13.
1027
- Updated urllib3 to 1.13.
1034
- Update certificate bundle to match `certifi` 2015.9.6.2's weak
1036
- Fix a bug in 2.8.0 where requests would raise `ConnectTimeout`
1037
instead of `ConnectionError`
1038
- When using the PreparedRequest flow, requests will now correctly
1039
respect the `json` parameter. Broken in 2.8.0.
1040
- When using the PreparedRequest flow, requests will now correctly
1041
handle a Unicode-string method name on Python 2. Broken in 2.8.0.
1046
**Minor Improvements** (Backwards Compatible)
1048
- Requests now supports per-host proxies. This allows the `proxies`
1049
dictionary to have entries of the form
1050
`{'<scheme>://<hostname>': '<proxy>'}`. Host-specific proxies will
1051
be used in preference to the previously-supported scheme-specific
1052
ones, but the previous syntax will continue to work.
1053
- `Response.raise_for_status` now prints the URL that failed as part
1054
of the exception message.
1055
- `requests.utils.get_netrc_auth` now takes an `raise_errors` kwarg,
1056
defaulting to `False`. When `True`, errors parsing `.netrc` files
1057
cause exceptions to be thrown.
1058
- Change to bundled projects import logic to make it easier to
1059
unbundle requests downstream.
1060
- Changed the default User-Agent string to avoid leaking data on
1061
Linux: now contains only the requests version.
1057
cause exceptions to be thrown.
1058
- Change to bundled projects import logic to make it easier to
1059
unbundle requests downstream.
1060
- Changed the default User-Agent string to avoid leaking data on
1061
Linux: now contains only the requests version.
1065
- The `json` parameter to `post()` and friends will now only be used
1066
if neither `data` nor `files` are present, consistent with the
1068
- We now ignore empty fields in the `NO_PROXY` environment variable.
1069
- Fixed problem where `httplib.BadStatusLine` would get raised if
1070
combining `stream=True` with `contextlib.closing`.
1071
- Prevented bugs where we would attempt to return the same connection
1072
back to the connection pool twice when sending a Chunked body.
1073
- Miscellaneous minor internal changes.
1074
- Digest Auth support is now thread safe.
1078
- Updated urllib3 to 1.12.
1083
This is the first release that follows our new release process. For
1085
documentation](https://requests.readthedocs.io/en/latest/community/release-process/).
1089
- Updated urllib3 to 1.10.4, resolving several bugs involving chunked
1090
transfer encoding and response framing.
1097
- Fix regression where compressed data that was sent as chunked data
1098
was not properly decompressed. (\#2561)
1097
- Fix regression where compressed data that was sent as chunked data
1098
was not properly decompressed. (\#2561)
1105
- Remove VendorAlias import machinery introduced in v2.5.2.
1106
- Simplify the PreparedRequest.prepare API: We no longer require the
1107
user to pass an empty list to the hooks keyword argument. (c.f.
1109
- Resolve redirects now receives and forwards all of the original
1110
arguments to the adapter. (\#2503)
1111
- Handle UnicodeDecodeErrors when trying to deal with a unicode URL
1112
that cannot be encoded in ASCII. (\#2540)
1113
- Populate the parsed path of the URI field when performing Digest
1114
Authentication. (\#2426)
1115
- Copy a PreparedRequest's CookieJar more reliably when it is not an
1116
instance of RequestsCookieJar. (\#2527)
1123
- CVE-2015-2296: Fix handling of cookies on redirect. Previously a
1124
cookie without a host value set would use the hostname for the
1125
redirected URL exposing requests users to session fixation attacks
1126
and potentially cookie stealing. This was disclosed privately by
1127
Matthew Daley of [BugFuzz](https://bugfuzz.com). This affects all
1128
versions of requests from v2.1.0 to v2.5.3 (inclusive on both ends).
1129
- Fix error when requests is an `install_requires` dependency and
1130
`python setup.py test` is run. (\#2462)
1131
- Fix error when urllib3 is unbundled and requests continues to use
1132
the vendored import location.
1133
- Include fixes to `urllib3`'s header handling.
1134
- Requests' handling of unvendored dependencies is now more
1131
- Fix error when urllib3 is unbundled and requests continues to use
1132
the vendored import location.
1133
- Include fixes to `urllib3`'s header handling.
1134
- Requests' handling of unvendored dependencies is now more
1137
**Features and Improvements**
1139
- Support bytearrays when passed as parameters in the `files`
1141
- Avoid data duplication when creating a request with `str`, `bytes`,
1142
or `bytearray` input to the `files` argument.
1149
- Revert changes to our vendored certificate bundle. For more context
1150
see (\#2455, \#2456, and <https://bugs.python.org/issue23476>)
1155
**Features and Improvements**
1157
- Add sha256 fingerprint support.
1158
([shazow/urllib3\#540](https://github.com/shazow/urllib3/pull/540))
1159
- Improve the performance of headers.
1160
([shazow/urllib3\#544](https://github.com/shazow/urllib3/pull/544))
1164
- Copy pip's import machinery. When downstream redistributors remove
1165
requests.packages.urllib3 the import machinery will continue to let
1166
those same symbols work. Example usage in requests' documentation
1167
and 3rd-party libraries relying on the vendored copies of urllib3
1168
will work without having to fallback to the system urllib3.
1169
- Attempt to quote parts of the URL on redirect if unquoting and then
1170
quoting fails. (\#2356)
1171
- Fix filename type check for multipart form-data uploads. (\#2411)
1172
- Properly handle the case where a server issuing digest
1173
authentication challenges provides both auth and auth-int
1174
qop-values. (\#2408)
1176
([shazow/urllib3\#549](https://github.com/shazow/urllib3/pull/549))
1177
- Fix multiple `Set-Cookie` headers properly.
1178
([shazow/urllib3\#534](https://github.com/shazow/urllib3/pull/534))
1179
- Disable the built-in hostname verification.
1180
([shazow/urllib3\#526](https://github.com/shazow/urllib3/pull/526))
1181
- Fix the behaviour of decoding an exhausted stream.
1182
([shazow/urllib3\#535](https://github.com/shazow/urllib3/pull/535))
1178
([shazow/urllib3\#534](https://github.com/shazow/urllib3/pull/534))
1179
- Disable the built-in hostname verification.
1180
([shazow/urllib3\#526](https://github.com/shazow/urllib3/pull/526))
1181
- Fix the behaviour of decoding an exhausted stream.
1182
([shazow/urllib3\#535](https://github.com/shazow/urllib3/pull/535))
1186
- Pulled in an updated `cacert.pem`.
1187
- Drop RC4 from the default cipher list.
1188
([shazow/urllib3\#551](https://github.com/shazow/urllib3/pull/551))
1193
**Behavioural Changes**
1195
- Only catch HTTPErrors in raise\_for\_status (\#2382)
1199
- Handle LocationParseError from urllib3 (\#2344)
1200
- Handle file-like object filenames that are not strings (\#2379)
1201
- Unbreak HTTPDigestAuth handler. Allow new nonces to be negotiated
1209
- Allow usage of urllib3's Retry object with HTTPAdapters (\#2216)
1210
- The `iter_lines` method on a response now accepts a delimiter with
1211
which to split the content (\#2295)
1213
**Behavioural Changes**
1215
- Add deprecation warnings to functions in requests.utils that will be
1216
removed in 3.0 (\#2309)
1217
- Sessions used by the functional API are always closed (\#2326)
1218
- Restrict requests to HTTP/1.1 and HTTP/1.0 (stop accepting HTTP/0.9)
1223
- Only parse the URL once (\#2353)
1224
- Allow Content-Length header to always be overridden (\#2332)
1225
- Properly handle files in HTTPDigestAuth (\#2333)
1226
- Cap redirect\_cache size to prevent memory abuse (\#2299)
1227
- Fix HTTPDigestAuth handling of redirects after authenticating
1228
successfully (\#2253)
1229
- Fix crash with custom method parameter to Session.request (\#2317)
1230
- Fix how Link headers are parsed using the regular expression library
1227
- Fix HTTPDigestAuth handling of redirects after authenticating
1228
successfully (\#2253)
1229
- Fix crash with custom method parameter to Session.request (\#2317)
1230
- Fix how Link headers are parsed using the regular expression library
1235
- Add more references for interlinking (\#2348)
1236
- Update CSS for theme (\#2290)
1237
- Update width of buttons and sidebar (\#2289)
1238
- Replace references of Gittip with Gratipay (\#2282)
1239
- Add link to changelog in sidebar (\#2273)
1246
- Unicode URL improvements for Python 2.
1247
- Re-order JSON param for backwards compat.
1248
- Automatically defrag authentication schemes from host/pass URIs.
1249
([\#2249](https://github.com/psf/requests/issues/2249))
1256
- FINALLY! Add json parameter for uploads!
1257
([\#2258](https://github.com/psf/requests/pull/2258))
1258
- Support for bytestring URLs on Python 3.x
1259
([\#2238](https://github.com/psf/requests/pull/2238))
1263
- Avoid getting stuck in a loop
1264
([\#2244](https://github.com/psf/requests/pull/2244))
1265
- Multiple calls to iter\* fail with unhelpful error.
1266
([\#2240](https://github.com/psf/requests/issues/2240),
1267
[\#2241](https://github.com/psf/requests/issues/2241))
1271
- Correct redirection introduction
1272
([\#2245](https://github.com/psf/requests/pull/2245/))
1273
- Added example of how to send multiple files in one request.
1274
([\#2227](https://github.com/psf/requests/pull/2227/))
1275
- Clarify how to pass a custom set of CAs
1276
([\#2248](https://github.com/psf/requests/pull/2248/))
1272
([\#2245](https://github.com/psf/requests/pull/2245/))
1273
- Added example of how to send multiple files in one request.
1274
([\#2227](https://github.com/psf/requests/pull/2227/))
1275
- Clarify how to pass a custom set of CAs
1276
([\#2248](https://github.com/psf/requests/pull/2248/))
1281
- Now has a "security" package extras set,
1282
`$ pip install requests[security]`
1283
- Requests will now use Certifi if it is available.
1284
- Capture and re-raise urllib3 ProtocolError
1285
- Bugfix for responses that attempt to redirect to themselves forever
1291
**Behavioral Changes**
1293
- `Connection: keep-alive` header is now sent automatically.
1297
- Support for connect timeouts! Timeout now accepts a tuple (connect,
1298
read) which is used to set individual connect and read timeouts.
1299
- Allow copying of PreparedRequests without headers/cookies.
1300
- Updated bundled urllib3 version.
1301
- Refactored settings loading from environment -- new
1302
Session.merge\_environment\_settings.
1303
- Handle socket errors in iter\_content.
1310
- New `Response` property `is_redirect`, which is true when the
1311
library could have processed this response as a redirection (whether
1312
or not it actually did).
1313
- The `timeout` parameter now affects requests with both `stream=True`
1314
and `stream=False` equally.
1315
- The change in v2.0.0 to mandate explicit proxy schemes has been
1316
reverted. Proxy schemes now default to `http://`.
1317
- The `CaseInsensitiveDict` used for HTTP headers now behaves like a
1318
normal dictionary when references as string or viewed in the
1315
- The change in v2.0.0 to mandate explicit proxy schemes has been
1316
reverted. Proxy schemes now default to `http://`.
1317
- The `CaseInsensitiveDict` used for HTTP headers now behaves like a
1318
normal dictionary when references as string or viewed in the
1323
- No longer expose Authorization or Proxy-Authorization headers on
1324
redirect. Fix CVE-2014-1829 and CVE-2014-1830 respectively.
1325
- Authorization is re-evaluated each redirect.
1326
- On redirect, pass url as native strings.
1327
- Fall-back to autodetected encoding for JSON when Unicode detection
1329
- Headers set to `None` on the `Session` are now correctly not sent.
1330
- Correctly honor `decode_unicode` even if it wasn't used earlier in
1332
- Stop advertising `compress` as a supported Content-Encoding.
1333
- The `Response.history` parameter is now always a list.
1334
- Many, many `urllib3` bugfixes.
1341
- Fixes incorrect parsing of proxy credentials that contain a literal
1342
or encoded '\#' character.
1343
- Assorted urllib3 fixes.
1350
- New exception: `ContentDecodingError`. Raised instead of `urllib3`
1351
`DecodeError` exceptions.
1355
- Avoid many many exceptions from the buggy implementation of
1356
`proxy_bypass` on OS X in Python 2.6.
1357
- Avoid crashing when attempting to get authentication credentials
1358
from \~/.netrc when running as a user without a home directory.
1359
- Use the correct pool size for pools of connections to proxies.
1360
- Fix iteration of `CookieJar` objects.
1361
- Ensure that cookies are persisted over redirect.
1362
- Switch back to using chardet, since it has merged with charade.
1358
from \~/.netrc when running as a user without a home directory.
1359
- Use the correct pool size for pools of connections to proxies.
1360
- Fix iteration of `CookieJar` objects.
1361
- Ensure that cookies are persisted over redirect.
1362
- Switch back to using chardet, since it has merged with charade.
1367
- Updated CA Bundle, of course.
1368
- Cookies set on individual Requests through a `Session` (e.g. via
1369
`Session.get()`) are no longer persisted to the `Session`.
1370
- Clean up connections when we hit problems during chunked upload,
1371
rather than leaking them.
1372
- Return connections to the pool when a chunked upload is successful,
1373
rather than leaking it.
1374
- Match the HTTPbis recommendation for HTTP 301 redirects.
1375
- Prevent hanging when using streaming uploads and Digest Auth when a
1377
- Values of headers set by Requests are now always the native string
1379
- Fix previously broken SNI support.
1380
- Fix accessing HTTP proxies using proxy authentication.
1381
- Unencode HTTP Basic usernames and passwords extracted from URLs.
1382
- Support for IP address ranges for no\_proxy environment variable
1383
- Parse headers correctly when users override the default `Host:`
1385
- Avoid munging the URL in case of case-sensitive servers.
1386
- Looser URL handling for non-HTTP/HTTPS urls.
1387
- Accept unicode methods in Python 2.6 and 2.7.
1388
- More resilient cookie handling.
1389
- Make `Response` objects pickleable.
1390
- Actually added MD5-sess to Digest Auth instead of pretending to like
1392
- Updated internal urllib3.
1393
- Fixed @Lukasa's lack of taste.
1389
- Make `Response` objects pickleable.
1390
- Actually added MD5-sess to Digest Auth instead of pretending to like
1392
- Updated internal urllib3.
1393
- Fixed @Lukasa's lack of taste.
1398
- Updated included CA Bundle with new mistrusts and automated process
1400
- Added MD5-sess to Digest Auth
1401
- Accept per-file headers in multipart file POST messages.
1402
- Fixed: Don't send the full URL on CONNECT messages.
1403
- Fixed: Correctly lowercase a redirect scheme.
1404
- Fixed: Cookies not persisted when set via functional API.
1405
- Fixed: Translate urllib3 ProxyError into a requests ProxyError
1406
derived from ConnectionError.
1407
- Updated internal urllib3 and chardet.
1414
- Keys in the Headers dictionary are now native strings on all Python
1415
versions, i.e. bytestrings on Python 2, unicode on Python 3.
1416
- Proxy URLs now *must* have an explicit scheme. A `MissingSchema`
1417
exception will be raised if they don't.
1418
- Timeouts now apply to read time if `Stream=False`.
1419
- `RequestException` is now a subclass of `IOError`, not
1421
- Added new method to `PreparedRequest` objects:
1422
`PreparedRequest.copy()`.
1423
- Added new method to `Session` objects: `Session.update_request()`.
1424
This method updates a `Request` object with the data (e.g. cookies)
1425
stored on the `Session`.
1426
- Added new method to `Session` objects: `Session.prepare_request()`.
1427
This method updates and prepares a `Request` object, and returns the
1428
corresponding `PreparedRequest` object.
1429
- Added new method to `HTTPAdapter` objects:
1430
`HTTPAdapter.proxy_headers()`. This should not be called directly,
1431
but improves the subclass interface.
1432
- `httplib.IncompleteRead` exceptions caused by incorrect chunked
1433
encoding will now raise a Requests `ChunkedEncodingError` instead.
1434
- Invalid percent-escape sequences now cause a Requests `InvalidURL`
1435
exception to be raised.
1436
- HTTP 208 no longer uses reason phrase `"im_used"`. Correctly uses
1437
`"already_reported"`.
1438
- HTTP 226 reason added (`"im_used"`).
1434
- Invalid percent-escape sequences now cause a Requests `InvalidURL`
1435
exception to be raised.
1436
- HTTP 208 no longer uses reason phrase `"im_used"`. Correctly uses
1437
`"already_reported"`.
1438
- HTTP 226 reason added (`"im_used"`).
1442
- Vastly improved proxy support, including the CONNECT verb. Special
1443
thanks to the many contributors who worked towards this improvement.
1444
- Cookies are now properly managed when 401 authentication responses
1446
- Chunked encoding fixes.
1447
- Support for mixed case schemes.
1448
- Better handling of streaming downloads.
1449
- Retrieve environment proxies from more locations.
1450
- Minor cookies fixes.
1451
- Improved redirect behaviour.
1452
- Improved streaming behaviour, particularly for compressed data.
1453
- Miscellaneous small Python 3 text encoding bugs.
1454
- `.netrc` no longer overrides explicit auth.
1455
- Cookies set by hooks are now correctly persisted on Sessions.
1456
- Fix problem with cookies that specify port numbers in their host
1458
- `BytesIO` can be used to perform streaming uploads.
1459
- More generous parsing of the `no_proxy` environment variable.
1460
- Non-string objects can be passed in data values alongside files.
1465
- Simple packaging fix
1470
- Simple packaging fix
1475
- 301 and 302 redirects now change the verb to GET for all verbs, not
1476
just POST, improving browser compatibility.
1477
- Python 3.3.2 compatibility
1478
- Always percent-encode location headers
1479
- Fix connection adapter matching to be most-specific first
1480
- new argument to the default connection adapter for passing a block
1482
- prevent a KeyError when there's no link headers
1478
- Always percent-encode location headers
1479
- Fix connection adapter matching to be most-specific first
1480
- new argument to the default connection adapter for passing a block
1482
- prevent a KeyError when there's no link headers
1487
- Fixed cookies on sessions and on requests
1488
- Significantly change how hooks are dispatched - hooks now receive
1489
all the arguments specified by the user when making a request so
1490
hooks can make a secondary request with the same parameters. This is
1491
especially necessary for authentication handler authors
1492
- certifi support was removed
1493
- Fixed bug where using OAuth 1 with body `signature_type` sent no
1495
- Major proxy work thanks to @Lukasa including parsing of proxy
1496
authentication from the proxy url
1497
- Fix DigestAuth handling too many 401s
1498
- Update vendored urllib3 to include SSL bug fixes
1499
- Allow keyword arguments to be passed to `json.loads()` via the
1500
`Response.json()` method
1501
- Don't send `Content-Length` header by default on `GET` or `HEAD`
1503
- Add `elapsed` attribute to `Response` objects to time how long a
1505
- Fix `RequestsCookieJar`
1506
- Sessions and Adapters are now picklable, i.e., can be used with the
1507
multiprocessing library
1508
- Update charade to version 1.0.3
1510
The change in how hooks are dispatched will likely cause a great deal of
1507
multiprocessing library
1508
- Update charade to version 1.0.3
1510
The change in how hooks are dispatched will likely cause a great deal of
1517
- Support for iterable response bodies
1518
- Assume servers persist redirect params
1519
- Allow explicit content types to be specified for file data
1520
- Make merge\_kwargs case-insensitive when looking up keys
1525
- Fix file upload encoding bug
1526
- Fix cookie behavior
1531
- Proxy fix for HTTPAdapter.
1536
- Cert verification exception bug.
1537
- Proxy fix for HTTPAdapter.
1542
- Massive Refactor and Simplification
1543
- Switch to Apache 2.0 license
1544
- Swappable Connection Adapters
1545
- Mountable Connection Adapters
1546
- Mutable ProcessedRequest chain
1548
- Removal of all configuration
1549
- Standard library logging
1550
- Make Response.json() callable, not property.
1551
- Usage of new charade project, which provides python 2 and 3
1552
simultaneous chardet.
1553
- Removal of all hooks except 'response'
1554
- Removal of all authentication helpers (OAuth, Kerberos)
1556
This is not a backwards compatible change.
1561
- Improved mime-compatible JSON handling
1564
- Case-Insensitive Content-Encoding headers
1565
- Support for CJK parameters in form posts
1561
- Improved mime-compatible JSON handling
1564
- Case-Insensitive Content-Encoding headers
1565
- Support for CJK parameters in form posts
1570
- Python 3.3 Compatibility
1571
- Simply default accept-encoding
1577
- No more iter\_content errors if already downloaded.
1582
- Fix for OAuth + POSTs
1583
- Remove exception eating from dispatch\_hook
1589
- Incredible Link header support :)
1594
- Support for (key, value) lists everywhere.
1595
- Digest Authentication improvements.
1596
- Ensure proxy exclusions work properly.
1597
- Clearer UnicodeError exceptions.
1598
- Automatic casting of URLs to strings (fURL and such)
1604
- Long awaited fix for hanging connections!
1614
- GSSAPI/Kerberos authentication!
1615
- App Engine 2.7 Fixes!
1616
- Fix leaking connections (from urllib3 update)
1617
- OAuthlib path hack fix
1618
- OAuthlib URL parameters fix.
1623
- Use simplejson if available.
1624
- Do not hide SSLErrors behind Timeouts.
1625
- Fixed param handling with urls containing fragments.
1626
- Significantly improved information in User Agent.
1627
- client certificates are ignored when verify=False
1623
- Use simplejson if available.
1624
- Do not hide SSLErrors behind Timeouts.
1625
- Fixed param handling with urls containing fragments.
1626
- Significantly improved information in User Agent.
1627
- client certificates are ignored when verify=False
1632
- Zero dependencies (once again)!
1633
- New: Response.reason
1634
- Sign querystring parameters in OAuth 1.0
1635
- Client certificates no longer ignored when verify=False
1636
- Add openSUSE certificate support
1641
- Allow passing a file or file-like object as data.
1642
- Allow hooks to return responses that indicate errors.
1643
- Fix Response.text and Response.json for body-less responses.
1648
- Removal of Requests.async in favor of
1649
[grequests](https://github.com/kennethreitz/grequests)
1650
- Allow disabling of cookie persistence.
1651
- New implementation of safe\_mode
1652
- cookies.get now supports default argument
1653
- Session cookies not saved when Session.request is called with
1654
return\_response=False
1655
- Env: no\_proxy support.
1656
- RequestsCookieJar improvements.
1662
- New `Response.json` property.
1663
- Ability to add string file uploads.
1664
- Fix out-of-range issue with iter\_lines.
1665
- Fix iter\_content default size.
1666
- Fix POST redirects containing files.
1665
- Fix iter\_content default size.
1666
- Fix POST redirects containing files.
1671
- EXPERIMENTAL OAUTH SUPPORT!
1672
- Proper CookieJar-backed cookies interface with awesome dict-like
1674
- Speed fix for non-iterated content chunks.
1675
- Move `pre_request` to a more usable place.
1676
- New `pre_send` hook.
1677
- Lazily encode data, params, files.
1678
- Load system Certificate Bundle if `certify` isn't available.
1684
- Attempt to use the OS's certificate bundle if `certifi` isn't
1686
- Infinite digest auth redirect fix.
1687
- Multi-part file upload improvements.
1688
- Fix decoding of invalid %encodings in URLs.
1689
- If there is no content in a response don't throw an error the second
1690
time that content is attempted to be read.
1691
- Upload data on redirects.
1696
- POST redirects now break RFC to do what browsers do: Follow up with
1698
- New `strict_mode` configuration to disable new redirect behavior.
1703
- Private SSL Certificate support
1704
- Remove select.poll from Gevent monkeypatching
1705
- Remove redundant generator for chunked transfer encoding
1706
- Fix: Response.ok raises Timeout Exception in safe\_mode
1711
- Generate chunked ValueError fix
1712
- Proxy configuration by environment variables
1713
- Simplification of iter\_lines.
1714
- New trust\_env configuration for disabling system/environment hints.
1715
- Suppress cookie errors.
1711
- Generate chunked ValueError fix
1712
- Proxy configuration by environment variables
1713
- Simplification of iter\_lines.
1714
- New trust\_env configuration for disabling system/environment hints.
1715
- Suppress cookie errors.
1720
- encode\_uri = False
1725
- Allow '=' in cookies.
1730
- Response body with 0 content-length fix.
1732
- Don't fail on netrc.
1742
- HEAD requests don't follow redirects anymore.
1743
- raise\_for\_status() doesn't raise for 3xx anymore.
1744
- Make Session objects picklable.
1745
- ValueError for invalid schema URLs.
1750
- Vastly improved URL quoting.
1751
- Additional allowed cookie key values.
1752
- Attempted fix for "Too many open files" Error
1753
- Replace unicode errors on first pass, no need for second pass.
1754
- Append '/' to bare-domain urls before query insertion.
1755
- Exceptions now inherit from RuntimeError.
1756
- Binary uploads + auth fix.
1763
- Dropped 2.5 Support. (*Backwards Incompatible*)
1768
- `Response.content` is now bytes-only. (*Backwards Incompatible*)
1769
- New `Response.text` is unicode-only.
1770
- If no `Response.encoding` is specified and `chardet` is available,
1771
`Response.text` will guess an encoding.
1772
- Default to ISO-8859-1 (Western) encoding for "text" subtypes.
1773
- Removal of decode\_unicode. (*Backwards Incompatible*)
1774
- New multiple-hooks system.
1775
- New `Response.register_hook` for registering hooks within the
1777
- `Response.url` is now Unicode.
1773
- Removal of decode\_unicode. (*Backwards Incompatible*)
1774
- New multiple-hooks system.
1775
- New `Response.register_hook` for registering hooks within the
1777
- `Response.url` is now Unicode.
1782
- SSL verify=False bugfix (apparent on windows machines).
1787
- Asynchronous async.send method.
1788
- Support for proper chunk streams with boundaries.
1789
- session argument for Session classes.
1790
- Print entire hook tracebacks, not just exception instance.
1791
- Fix response.iter\_lines from pending next line.
1792
- Fix but in HTTP-digest auth w/ URI having query strings.
1793
- Fix in Event Hooks section.
1799
- danger\_mode for automatic Response.raise\_for\_status()
1800
- Response.iter\_lines refactor
1805
- verify ssl is default.
1815
- SSL CERT VERIFICATION!
1816
- Release of Cerifi: Mozilla's cert list.
1817
- New 'verify' argument for SSL requests.
1823
- iter\_lines last-line truncation fix
1824
- Force safe\_mode for async requests
1825
- Handle safe\_mode exceptions more consistently
1826
- Fix iteration on null responses in safe\_mode
1825
- Handle safe\_mode exceptions more consistently
1826
- Fix iteration on null responses in safe\_mode
1831
- Socket timeout fixes.
1832
- Proxy Authorization support.
1837
- Response.iter\_lines!
1843
- Added license to installed version.
1848
- Converted auth system to use simpler callable objects.
1849
- New session parameter to API methods.
1850
- Display full URL while logging.
1855
- New Unicode decoding system, based on over-ridable
1857
- Proper URL slash-quote handling.
1858
- Cookies with `[`, `]`, and `_` allowed.
1863
- URL Request path fix
1870
- Keep-alive support!
1871
- Complete removal of Urllib2
1872
- Complete removal of Poster
1873
- Complete removal of CookieJars
1874
- New ConnectionError raising
1875
- Safe\_mode for error catching
1876
- prefetch parameter for request methods
1878
- Async pool size throttling
1879
- File uploads send real names
1880
- Vendored in urllib3
1885
- Digest authentication bugfix (attach query data to path)
1890
- Response.content = None if there was an invalid response.
1891
- Redirection auth handling.
1890
- Response.content = None if there was an invalid response.
1891
- Redirection auth handling.
1911
- Move away from urllib2 authentication handling.
1912
- Fully Remove AuthManager, AuthObject, &c.
1913
- New tuple-based auth system with handler callbacks.
1918
- Sessions are now the primary interface.
1919
- Deprecated InvalidMethodException.
1921
- New config system (no more global settings).
1926
- Session parameter bugfix (params merging).
1931
- Offline (fast) test suite.
1932
- Session dictionary argument merging.
1937
- Automatic decoding of unicode, based on HTTP Headers.
1938
- New `decode_unicode` setting.
1939
- Removal of `r.read/close` methods.
1940
- New `r.faw` interface for advanced response usage.\*
1941
- Automatic expansion of parameterized headers.
1946
- Beautiful `requests.async` module, for making async requests w/
1952
- GET/HEAD obeys allow\_redirects=False.
1952
- GET/HEAD obeys allow\_redirects=False.
1957
- Enhanced status codes experience `\o/`
1958
- Set a maximum number of redirects (`settings.max_redirects`)
1959
- Full Unicode URL support
1960
- Support for protocol-less redirects.
1961
- Allow for arbitrary request types.
1967
- New callback hook system
1968
- New persistent sessions object and context manager
1969
- Transparent Dict-cookie handling
1970
- Status code reference object
1971
- Removed Response.cached
1972
- Added Response.request
1973
- All args are kwargs
1974
- Relative redirect support
1975
- HTTPError handling improvements
1976
- Improved https testing
1982
- International Domain Name Support!
1983
- Access headers without fetching entire body (`read()`)
1984
- Use lists as dicts for parameters
1985
- Add Forced Basic Authentication
1986
- Forced Basic is default authentication type
1987
- `python-requests.org` default User-Agent header
1988
- CaseInsensitiveDict lower-case caching
1989
- Response.history bugfix
1995
- Support for Proxies
1998
- settings.verbose stream writing
1999
- Querystrings for all methods
2000
- URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as
2002
`r.requests.get('hwe://blah'); r.raise_for_status()`
1998
- settings.verbose stream writing
1999
- Querystrings for all methods
2000
- URLErrors (Connection Refused, Timeout, Invalid URLs) are treated as
2002
`r.requests.get('hwe://blah'); r.raise_for_status()`
2007
- Improved Redirection Handling
2008
- New 'allow\_redirects' param for following non-GET/HEAD Redirects
2009
- Settings module refactoring
2014
- Response.history: list of redirected responses
2015
- Case-Insensitive Header Dictionaries!
2021
- Urllib2 HTTPAuthentication Recursion fix (Basic/Digest)
2023
- Bytes data upload Bugfix
2029
- Unicode url-encoded data
2030
- Settings context manager and module
2035
- Automatic Decompression of GZip Encoded Content
2036
- AutoAuth Support for Tupled HTTP Auth
2048
- Automatic Authentication API Change
2049
- Smarter Query URL Parameterization
2050
- Allow file uploads and POST data together
2053
New Authentication Manager System
2055
: - Simpler Basic HTTP System
2056
- Supports all built-in urllib2 Auths
2057
- Allows for custom Auth Handlers
2056
- Supports all built-in urllib2 Auths
2057
- Allows for custom Auth Handlers
2063
- PyPy-c v1.4 Support
2064
- Auto-Authentication tests
2065
- Improved Request object constructor
2072
New HTTPHandling Methods
2074
: - Response.\_\_nonzero\_\_ (false if bad HTTP Status)
2075
- Response.ok (True if expected HTTP Status)
2076
- Response.error (Logged HTTPError if bad HTTP Status)
2077
- Response.raise\_for\_status() (Raises stored HTTPError)
2082
- Still handles request in the event of an HTTPError. (Issue \#2)
2083
- Eventlet and Gevent Monkeypatch support.
2084
- Cookie Support (Issue \#1)
2089
- Added file attribute to POST and PUT requests for multipart-encode
2091
- Added Request.url attribute for context and redirects