Summary: Saved cookies file doesn't pass cookielib's valid
cookie format test
                 Project: GNU Wget
            Submitted by: None
            Submitted on: Wed 14 Aug 2019 05:35:40 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Ashley Harvey
        Originator Email: mach...@gmail.com
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.20
        Operating System: Mac OS
         Reproducibility: Every Time
           Fixed Release: None
         Planned Release: None
              Regression: None
           Work Required: None
          Patch Included: No



This may be an issue of strict regexing where it needn't be - please let me
know if I should report this in a bug repo for cookielib instead.

I'm on macOS 10.14.6, wget 1.20.3.

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

However, line 39 of _MozillaCookieJar.py (cookielib) shows it looking for
> magic_re = "#( Netscape)? HTTP Cookie File"
in order to validate the passed cookie file.  wget, however, produces a
cookies file that begins with
> # HTTP cookie file

The lack of upper-case c and f cause cookielib to choke and stop processing
the cookies file. 


Reply to this item at:


  Message sent via Savannah

Reply via email to