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/test1299 | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 tests/data/test1299 (limited to 'tests/data/test1299') diff --git a/tests/data/test1299 b/tests/data/test1299 new file mode 100644 index 000000000..51bb71248 --- /dev/null +++ b/tests/data/test1299 @@ -0,0 +1,55 @@ + + + +HTTP +--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 + + +Send "OPTIONS *" with --strip-path-slash + + +--strip-path-slash -X OPTIONS http://%HOSTIP:%HTTPPORT/* -H "Testno: 1299" + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +OPTIONS * HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* +Testno: 1299 + + + + -- cgit v1.2.3