From b778ae4c5e5bcb6da4de789e25971f40f0673d86 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 19 Jun 2017 14:10:33 +0200 Subject: 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 --- tests/data/test1298 | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 tests/data/test1298 (limited to 'tests/data/test1298') diff --git a/tests/data/test1298 b/tests/data/test1298 new file mode 100644 index 000000000..c9c8b383a --- /dev/null +++ b/tests/data/test1298 @@ -0,0 +1,56 @@ + + + +HTTP +HTTP GET +--strip-path-slash + + + +# +# Server-side + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT +ETag: "21025-dc7-39462498" +Accept-Ranges: bytes +Content-Length: 0 +Connection: close +Content-Type: text/html +Funny-head: yesyes + + + + +# +# Client-side + + +http + + +HTTP GET special path with --strip-path-slash + + +--strip-path-slash "http://%HOSTIP:%HTTPPORT/XXX" -H "Testno: 1298" + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET XXX HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* +Testno: 1298 + + + + -- cgit v1.2.3