This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mt0321
Recipients douyuan, jdetrey, jjlee, loewis, mt0321, terry.reedy
Date 2017-08-27.17:50:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1503856228.33.0.240346602352.issue2190@psf.upfronthosting.co.za>
In-reply-to
Content
Can this issue be reopened? As Jérémie stated, curl uses this format and outputs cookie files using the #HttpOnly_ prefix. I also found at least one project that is working around lack of this support:
https://code.google.com/archive/p/git-repo/
https://gerrit.googlesource.com/git-repo/+/master/subcmds/sync.py#995
      # Python doesn't understand cookies with the #HttpOnly_ prefix
      # Since we're only using them for HTTP, copy the file temporarily,
      # stripping those prefixes away.

One potential improvement for the proposed patch: instead of just stripping out #HttpOnly_, this attribute should be set on the Cookie that is created, within the 'rest' dict (rest={'HttpOnly': True}). The Morsel class is already aware of this attribute, as is the 'requests.cookies' module.
History
Date User Action Args
2017-08-27 17:50:28mt0321setrecipients: + mt0321, loewis, terry.reedy, jjlee, douyuan, jdetrey
2017-08-27 17:50:28mt0321setmessageid: <1503856228.33.0.240346602352.issue2190@psf.upfronthosting.co.za>
2017-08-27 17:50:28mt0321linkissue2190 messages
2017-08-27 17:50:28mt0321create