-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable Cookie Handling #2067
Labels
Milestone
Comments
Maybe create a new session for every request? |
Thanks - that could work, although I'd lose the benefits of connection pooling, right? |
you can use custom connection object and pass |
Ahh, awesome. Thanks so much! |
Fixed by 0d9abc9 |
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'd like to disable cookie processing in the general case for the session but to allow them to be set for requests with redirects. For example, a request to
httpbin.org/cookies/set?a=1
results in a redirect tohttpbin.org/cookies
with the appropriateSet-Cookie
header. If I use a custom cookie jar (per Issue #957) that implementsupdate_cookies
as a no-op, when the redirect is followed, the cookies set in upstream requests aren't applied during subsequent redirects.Aside from disabling redirects, setting cookies manually in the case of a redirect and following it manually, is there a way to deal with cookies more granularly than on a per-session basis?
The text was updated successfully, but these errors were encountered: