with all due respect this sounds like a confusing cli argument design. I am the one doing it wrong :’) I personally can never remember all the #curl arguments, only the most commonly used ones, and -X is one that is easy to remember and can be used for many occasions. Maybe the solution should be to prefer -X always and a separate argument for whether the redirects should follow explicitly given method
@ddenis it may be confusing, it may be "wrong", but we implemented this decades ago so changing it now would cause breakage and havoc in countless places - so we won't...
absolutely understandable. Curl is so ubiquitous, it is not possible to change the behavior that tons of scripts and developers rely on. Thanks for making curl ❤
daniel:// stenberg://
in reply to daniel:// stenberg:// • • •Unnecessary use of curl -X | daniel.haxx.se
daniel.haxx.seDenis Dzyubenko
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Denis Dzyubenko • • •daniel:// stenberg://
in reply to daniel:// stenberg:// • • •Denis Dzyubenko
in reply to daniel:// stenberg:// • • •Tim Kellogg
in reply to daniel:// stenberg:// • • •daniel:// stenberg://
in reply to Tim Kellogg • • •Example Domain
example.comBrian Shaw
in reply to daniel:// stenberg:// • • •