From 5d2327929932bb18b0c683583f398855f0a31fed Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 23 Mar 2015 10:51:49 +0100 Subject: CURLOPT_PATH_AS_IS: added --path-as-is is the command line option Added docs in curl.1 and CURLOPT_PATH_AS_IS.3 Added test in test 1241 --- tests/data/test1241 | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 tests/data/test1241 (limited to 'tests/data/test1241') diff --git a/tests/data/test1241 b/tests/data/test1241 new file mode 100644 index 000000000..aaa568868 --- /dev/null +++ b/tests/data/test1241 @@ -0,0 +1,64 @@ + + +# verify that dotdot removal can be disabled! + +HTTP +HTTP GET +HTTP proxy + + + +# +# Server-side + + +HTTP/1.1 200 OK +Content-Length: 6 +Connection: close + +-foo- + + + +HTTP/1.1 200 OK +Content-Length: 7 +Connection: close + +-cool- + + + +# +# Client-side + + +http + + +HTTP _without_ dotdot removal + + +--path-as-is --proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.1241:8990/../../hej/but/who/../1241?stupid=me/../1241#soo/../1241 http://test.remote.haxx.se.1241:8990/../../hej/but/who/../12410001#/../12410001 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET http://test.remote.haxx.se.1241:8990/../../hej/but/who/../1241?stupid=me/../1241 HTTP/1.1 +Host: test.remote.haxx.se.1241:8990 +Accept: */* +Proxy-Connection: Keep-Alive + +GET http://test.remote.haxx.se.1241:8990/../../hej/but/who/../12410001 HTTP/1.1 +Host: test.remote.haxx.se.1241:8990 +Accept: */* +Proxy-Connection: Keep-Alive + + + + -- cgit v1.2.3