Join GitHub today
--request-target: instead of --strip-path-slash #1593
... and CURLOPT_REQUEST_TARGET instead of CURLOPT_STRIP_PATH_SLASH.
This option instead provides the full "alternative" target to use in the
Test 1298 and 1299 updated accordingly.
Idea-by: Evert Pot
I'd say they cover pretty much the same use cases. This approach has the benefit in my mind that it makes it more visible and straight-forward to the user as to what is actually sent, while the "strip slash" option is a more subtle description of how to change the transition from a URL to a HTTP request target.