I think as a user -X overriding the HTTP method on every subsequent request when redirected is unexpected. I'd expect curl to keep the method on 307/308, override to GET on 303 (and 301/302 if it's a POST?). Which I think it's Option 1 of your proposal.
But, you just _know_ there must be someone who relies on the existing behavior.
Santiago Piqueras
in reply to daniel:// stenberg:// • • •TIL about the interaction between 303, -X and -L.
I think as a user -X overriding the HTTP method on every subsequent request when redirected is unexpected. I'd expect curl to keep the method on 307/308, override to GET on 303 (and 301/302 if it's a POST?). Which I think it's Option 1 of your proposal.
But, you just _know_ there must be someone who relies on the existing behavior.