-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
HTTP client: Support for handling cookies #445
Comments
The main reason I mentioned
<3! |
@JustBeYou Excellent input, would love to see this in ReactPHP! The HTTP |
Providing an API to set and retrieve cookies isn't really too hard, but we'd also have to take persistence into consideration. I don't think there's an agreed upon standard, but the Netscape cookie file format used by curl seems to be a decent contender.
Some useful pointers:
|
While I was trying to port some blocking libcURL code to ReactPHP I found there is no support for handling cookies when using the HTTP client. Inspired by other clients (especially cURL) I propose that the following features should be added:
As suggested by @WyriHaximus, storing the cookie jar could be done with
react/cache
which I find totally ok. Saving and loading to/from files could be implemented by the user or we could build something on top ofArrayCache
.After we settle the details of this, I would be happy to implement it :D
The text was updated successfully, but these errors were encountered: