pypi curl-cffi 0.11.2
v0.11.2

latest releases: 0.16.4b1, 0.16.3, 0.16.3b1...
16 months ago

Minor breaking change

The response.cookies object now contains only cookies from current request. If you are using the following patterns and hit a redirect, you will need a session.

import curl_cffi
r = curl_cffi.get("https://httpbin.org/redirect")

# ❌ Cookie from previous redirect may be lost.
do_something(r.cookies)


s = curl_cffi.Session()
r = s.get("https://httpbin.org/redirect")

# ✅ Use a session instead, to retrive all cookies in the session
do_something(s.cookies)

What's Changed

Full Changelog: v0.11.1...v0.11.2

Don't miss a new curl-cffi release

NewReleases is sending notifications on new releases.