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 ashleyharvey
Recipients ashleyharvey, ned.deily, ronaldoussoren
Date 2019-08-14.20:14:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565813694.91.0.343923131881.issue37858@roundup.psfhosted.org>
In-reply-to
Content
I'm on macOS 10.14.6, wget 1.20.3, python 2.7.

Command line:
$ wget --save-cookies cookies.txt --keep-session-cookies --post-data
'username=myUserName&password=myPassword' --delete-after <url>

Line 39 of _MozillaCookieJar.py (cookielib) shows it looking for 'magic_re = "#( Netscape)? HTTP Cookie File"' in order to validate the supplied cookies file.  Unlike cURL, wget however, produces a cookies file that begins with "# HTTP cookie file".  Note the lower-case c and f.  I reported this as a bug to the wget team who looked for the spec to say that that line must follow a certain format and couldn't find any such mention.  (See: https://savannah.gnu.org/bugs/?56755)

The lack of upper-case c and f cause cookielib to choke and stop processing
the cookies file, and so here I am reporting it as a bug that the regex is case-sensitive.
History
Date User Action Args
2019-08-14 20:14:55ashleyharveysetrecipients: + ashleyharvey, ronaldoussoren, ned.deily
2019-08-14 20:14:54ashleyharveysetmessageid: <1565813694.91.0.343923131881.issue37858@roundup.psfhosted.org>
2019-08-14 20:14:54ashleyharveylinkissue37858 messages
2019-08-14 20:14:54ashleyharveycreate