Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
57b9e36 to
4e5fe66
Compare
4e5fe66 to
0bac12b
Compare
|
all, obey, first => keep, spec, initial? |
I like that! 👍 |
0bac12b to
f422d01
Compare
|
I’m still thinking about the naming of the parameter and its modes 🫤 This not so much about handling the Currently the man page will read: and as mode is no preexisting technical term (like My two cents on the mode names then:
|
|
I read |
|
Naming is hard! |
|
To give us more time to think and discuss about the parameter naming, even on the option itself, we have decided to let this PR wait for the next feature window, presumably for 8.15.0 instead of 8.14.0. |
Sets the "mode" for how to treat and use a custom HTTP method when following redirects. add test 792 - 795 Assisted-by: Daniel Böhmer <post@daniel-boehmer.de> Closes #16543
953fa43 to
404abee
Compare
|
Alternative names for the command line option to consider:
We can also ponder making this new option also enable |
|
Enabling --location automatically has the disadvantage that this option can't
be added to .curlrc as a default without also enabling location processing.
|
Right, but that can also be an advantage since that will force users to do it "right" and make old curl not work with it. Putting something in your .curlrc in your machine and having others run the same script without the new thing might lead to one invoke doing the right thing and another doing the wrong thing... |
Sets the "mode" for how to treat and use a custom HTTP method when following redirects. add test 794 - 797 Assisted-by: Daniel Böhmer <post@daniel-boehmer.de> Closes #16543
404abee to
3964ec4
Compare
Sets the "mode" for how to treat and use a custom HTTP method when following redirects. add test 794 - 797 Assisted-by: Daniel Böhmer <post@daniel-boehmer.de> Closes #16543
3964ec4 to
b19391f
Compare
|
Now the option is |
|
Now I'm thinking about removing the "mode" argument and just have |
Makes sense to me. (Can't miss the opportunity to bikeshed: |
Sets the "mode" for how to treat and use a custom HTTP method when following redirects. add test 794 - 797 Assisted-by: Daniel Böhmer <post@daniel-boehmer.de> Closes #16543
b19391f to
a6817f9
Compare
Sets the "mode" for how to treat and use a custom HTTP method when following redirects. add test 794 - 797 Assisted-by: Daniel Böhmer <post@daniel-boehmer.de> Closes #16543
a6817f9 to
8443972
Compare
Makes curl follow redirects an act on the response code and change a
custom method accordingly, contrary to --location.
Potential future command line to send QUERY and following a redirect
according to the status code:
curl -d "request-body" -X QUERY --redirect https://example.com
add test 794,796,797
Assisted-by: Daniel Böhmer <post@daniel-boehmer.de>
Closes #16543
8443972 to
f2a641c
Compare
|
Any final words, comments, advice or objections? |
|
Your latest commit message f2a641c seems to have two typos: |
|
Did you consider naming it |
|
A good point and a solid argument for @icing's proposal One more rename... |
Makes curl follow redirects an act on the response code and change a
custom method accordingly, contrary to --location.
Potential future command line to send QUERY and following a redirect
according to the status code:
curl -d "request-body" -X QUERY --follow https://example.com
add test 794,796,797
Assisted-by: Daniel Böhmer <post@daniel-boehmer.de>
Closes #16543
f2a641c to
39543b7
Compare
|
For those looking, the handling of this new mode landed a few months earlier in libcurl at #16473 |
Makes curl follow redirects an act on the response code and change a custom method accordingly, contrary to --location.
Potential future command line to send QUERY and following a redirect according to the status code: