From 2c905fd1f8200349667dc990a17daf37214700bf Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Thu, 24 Nov 2011 23:28:54 +0100 Subject: query-part: ignore the URI part for given protocols By setting PROTOPT_NOURLQUERY in the protocol handler struct, the protocol will get the "query part" of the URL cut off before the data is handled by the protocol-specific code. This makes libcurl adhere to RFC3986 section 2.2. Test 1220 is added to verify a file:// URL with query-part. --- tests/data/test1220 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/data/test1220 (limited to 'tests/data/test1220') diff --git a/tests/data/test1220 b/tests/data/test1220 new file mode 100644 index 000000000..d36524960 --- /dev/null +++ b/tests/data/test1220 @@ -0,0 +1,30 @@ + +# Server-side + + + + + +# Client-side + + +file + + +file:// URLs with query string + + +file://localhost/%PWD/log/test1220.txt?a_query=foobar#afragment + + +contents in a single file + + + +# Verify data after the test has been "shot" + + +contents in a single file + + + -- cgit v1.2.3