GNOME Bugzilla – Bug 640159
[souphttpsrc] add support to load cookies from a cookiejar file
Last modified: 2017-03-16 13:38:21 UTC
Created attachment 178920 [details] add a 'cookiejar-file-name' property to load cookies from a cookiejar file souphttpsrc should be able to load cookies from a file.
You want to send all the cookies in the jar? That seems... inappropriate.
You're right. By default it should send the first cookie that applies to the 'location' (of souphttpsrc) maybe using soup_cookie_applies_to_uri (or directly using soup_cookie_jar_get_cookies)
Created attachment 203955 [details] [review] path to add support to load cookies from a cookiejar file reformat patch to keep something applicable
you don't need to figure out what cookies to send yourself. just add the cookie jar to the session with soup_session_add_feature(), and then it will automatically deal with sending the right cookies for you (and updating them from the server response, and saving them to disk, etc)
Let's close this as duplicate of bug #751371, which is about a generic cookie jar interface. In-memory cookie jar and sharing in the same pipeline is also implemented in bug #780140 (and it also allows the application to create its own SoupSession with whatever cookie jar it wants). *** This bug has been marked as a duplicate of bug 751371 ***