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/