-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
Provide ability to persist and restore cookie jar #176
Comments
Thanks for the question! This is currently not available, but would be a welcome improvement! Cookies are only held in memory at the moment. Currently the cookies subsystem does not involve libcurl at all -- the primary reason for this is performance. Access to persistent cookies (on disk) would require synchronous I/O which would block our event loop, or a thread pool which would be a lot of overhead if not opted into. To implement this, we would probably want to provide access to the contents of the cookie jar and leave it up to the user how to persist it. We could implement |
Removing this from the 1.0 milestone, which is cluttered as it is. Persisting or allowing serialization of the cookie jar means we need to pick a particular persistence format and make that part of our public API guarantees. Since the cookie API itself isn't even fully available yet, I am not ready to commit to a particular storage format yet. The tricky part here is that we need to expose several "implementation details" about the cookie jar, including:
|
Hello, can you increase the local storage and loading of cookies?
Curl-like cookies_jar and cookies_file methods
The text was updated successfully, but these errors were encountered: