Skip to content

gh-61366: Write session cookies in the curl and Wget format - #155602

Open
serhiy-storchaka wants to merge 9 commits into
python:mainfrom
serhiy-storchaka:gh-61366-write-curl-format
Open

gh-61366: Write session cookies in the curl and Wget format#155602
serhiy-storchaka wants to merge 9 commits into
python:mainfrom
serhiy-storchaka:gh-61366-write-curl-format

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Session cookies are now saved with 0 in the expiration time field, as curl and Wget do. Previously this field was left empty, and such lines are ignored by curl and Wget, so all session cookies were lost.

This is based on #11792, which adds reading such files, and should be merged after it. Unlike it, this change is not backported, because files written with 0 are not read by unpatched Python.

Rémi Lapeyre and others added 9 commits February 8, 2019 18:04
test.support.TESTFN and MozillaCookieJar.header no longer exist.
Writing 0 instead of an empty field makes the file incompatible with
unpatched Python, so it is left for a separate change.
curl and Wget ignore the line if this field is empty.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant