docs: Remove that --proto is just used for initial retrieval #1031

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@jay
Member
jay commented Sep 21, 2016

.. and add that --proto-redir and CURLOPT_REDIR_PROTOCOLS do not
override protocols denied by --proto and CURLOPT_PROTOCOLS.

  • Add a test to enforce: --proto deny must override --proto-redir allow

I think saying "Tells curl to use the listed protocols for its initial retrieval" in --proto is misleading because protocols it denies can't be used on redirect, so I changed it to "Tells curl to limit what protocols it may use in the transfer" and added a test to make sure it stays that way. I wasn't able to go further back than 7.21 but I'd guess this holds true since inception.

@jay jay docs: Remove that --proto is just used for initial retrieval
.. and add that --proto-redir and CURLOPT_REDIR_PROTOCOLS do not
override protocols denied by --proto and CURLOPT_PROTOCOLS.

- Add a test to enforce: --proto deny must override --proto-redir allow
87a1bd0
@bagder
bagder approved these changes Sep 21, 2016 View changes
@bagder
Member
bagder commented Sep 21, 2016

I think that wording came from me trying to make it clear that it was affecting already the first request, as opposed to the redir version that only affects what it allows a redirect to. I think your change here is a clear improvement!

@jay jay added a commit that closed this pull request Sep 21, 2016
@jay jay docs: Remove that --proto is just used for initial retrieval
.. and add that --proto-redir and CURLOPT_REDIR_PROTOCOLS do not
override protocols denied by --proto and CURLOPT_PROTOCOLS.

- Add a test to enforce: --proto deny must override --proto-redir allow

Closes #1031
36e53ec
@jay jay closed this in 36e53ec Sep 21, 2016
@jay jay deleted the jay:proto_deny_overrides_proto-redir branch Sep 21, 2016
@jay jay added the documentation label Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment