Hi Darshit, Darshit Shah wrote: > Unless we explicitly check for opt.method = POST, this will cause a lot > of issues. Since the macro is being called on every redirect, even > HEAD/PUT/OPTIONS headers will get suspended to give way to GET. That is > not the behaviour we want.
Ah, I see it's more complicated. If I understand RFC 2616 correctly (section 10.3), suspending a PUT request in response to a redirect is incorrect. But so is changing a POST request to a GET in response to anything but a 303. But that's expected (and the current behaviour of Wget):
Note: When automatically redirecting a POST request after receiving a 301 status code, some existing HTTP/1.0 user agents will erroneously change it into a GET request. I give up. Regards, Gijs