-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
curl: add --location-mode keep/spec/init #16543
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
8000 Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
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! 👍 |
Sets the "mode" for how to treat and use a custom HTTP method when following redirects.
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 |
Co-authored-by: Daniel Böhmer <post@daniel-boehmer.de>
Co-authored-by: Daniel Böhmer <post@daniel-boehmer.de>
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.
The idea being that a user can set
location-mode: spec
in their .curlrc or similar to get this functionality by default every time they use -L/--location.Potential future command line to send QUERY and following a redirect according to the status code: