bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60617] POST not continued after 301, 302


From: Frank Heckenbach
Subject: [bug #60617] POST not continued after 301, 302
Date: Sun, 16 May 2021 11:43:25 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

URL:
  <https://savannah.gnu.org/bugs/?60617>

                 Summary: POST not continued after 301, 302
                 Project: GNU Wget
            Submitted by: frank
            Submitted on: Sun 16 May 2021 03:43:23 PM UTC
                Category: Program Logic
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 1.20
         Discussion Lock: Any
        Operating System: GNU/Linux
         Reproducibility: Every Time
           Fixed Release: None
         Planned Release: None
              Regression: None
           Work Required: None
          Patch Included: Yes

    _______________________________________________________

Details:

According to the man page: "In case of a 301 Moved Permanently, 302 Moved
Temporarily or 307 Temporary Redirect, Wget will, in accordance with RFC2616,
continue to send a POST request."

That doesn't seem to work after 301 and 302, see debug.output.

It seems the comparison is inverted. It should keep POST if it was POST ("==",
not "!="), see attached patch which seems to fix the problem for me.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 16 May 2021 03:43:23 PM UTC  Name: debug.output  Size: 3KiB   By:
frank

<http://savannah.gnu.org/bugs/download.php?file_id=51444>
-------------------------------------------------------
Date: Sun 16 May 2021 03:43:23 PM UTC  Name: redirect.patch  Size: 767B   By:
frank

<http://savannah.gnu.org/bugs/download.php?file_id=51445>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60617>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]