]> granicus.if.org Git - curl/commit
http: add --strip-path-slash and CURLOPT_STRIP_PATH_SLASH
authorDaniel Stenberg <daniel@haxx.se>
Mon, 19 Jun 2017 12:10:33 +0000 (14:10 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 19 Jun 2017 14:39:22 +0000 (16:39 +0200)
commitb778ae4c5e5bcb6da4de789e25971f40f0673d86
tree6a710c4bf1a37e78a5b613109af46dd6762369bd
parent176ec5138277fcda592fa604e499dfd6819eece9
http: add --strip-path-slash and CURLOPT_STRIP_PATH_SLASH

... to enable sending "OPTIONS *" which wasn't possible previously.

This option currently only works for HTTP.

Added test cases 1298 + 1299 to verify

Fixes #1280
Closes #1462
21 files changed:
docs/TODO
docs/cmdline-opts/Makefile.inc
docs/cmdline-opts/strip-path-slash.d [new file with mode: 0644]
docs/libcurl/curl_easy_setopt.3
docs/libcurl/opts/CURLOPT_CUSTOMREQUEST.3
docs/libcurl/opts/CURLOPT_NOBODY.3
docs/libcurl/opts/CURLOPT_STRIP_PATH_SLASH.3 [new file with mode: 0644]
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.h
src/tool_getparam.c
src/tool_help.c
src/tool_operate.c
tests/data/Makefile.inc
tests/data/test1298 [new file with mode: 0644]
tests/data/test1299 [new file with mode: 0644]
tests/server/sws.c