]> git.ipfire.org Git - thirdparty/curl.git/commit - src/tool_cfgable.c
--request-target: instead of --strip-path-slash
authorDaniel Stenberg <daniel@haxx.se>
Wed, 21 Jun 2017 21:35:08 +0000 (23:35 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 21 Jun 2017 21:39:10 +0000 (23:39 +0200)
commit9b167fd090f596eac828817d48c247eeae53407f
treed89ba04374722be9ca36d633a82e07616abbe0f6
parent8de8f4eb7e7c276eb2b2a2f7888c88d0779bed39
--request-target: instead of --strip-path-slash

... and CURLOPT_REQUEST_TARGET instead of CURLOPT_STRIP_PATH_SLASH.

This option instead provides the full "alternative" target to use in the
request, instead of extracting the path from the URL.

Test 1298 and 1299 updated accordingly.

Idea-by: Evert Pot
Suggestion: https://daniel.haxx.se/blog/2017/06/19/options-with-curl/comment-page-1/#comment-18373

Closes #1593
20 files changed:
docs/cmdline-opts/Makefile.inc
docs/cmdline-opts/request-target.d [new file with mode: 0644]
docs/cmdline-opts/strip-path-slash.d [deleted file]
docs/libcurl/curl_easy_setopt.3
docs/libcurl/opts/CURLOPT_CUSTOMREQUEST.3
docs/libcurl/opts/CURLOPT_NOBODY.3
docs/libcurl/opts/CURLOPT_REQUEST_TARGET.3 [moved from docs/libcurl/opts/CURLOPT_STRIP_PATH_SLASH.3 with 80% similarity]
docs/libcurl/opts/Makefile.inc
docs/libcurl/symbols-in-versions
include/curl/curl.h
lib/http.c
lib/url.c
lib/urldata.h
src/tool_cfgable.c
src/tool_cfgable.h
src/tool_getparam.c
src/tool_help.c
src/tool_operate.c
tests/data/test1298
tests/data/test1299