aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2011-11-24 23:28:54 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-11-24 23:31:19 +0100
commit2c905fd1f8200349667dc990a17daf37214700bf (patch)
tree2ca084e15c43f9c1ac1eff3a63da41ee62ac089b /tests
parent4403e82f32de9b339cdacea6989e4a827a7b3a02 (diff)
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/data/Makefile.am1
-rw-r--r--tests/data/test122030
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
index c52ef243c..2d86aa12c 100644
--- a/tests/data/Makefile.am
+++ b/tests/data/Makefile.am
@@ -78,6 +78,7 @@ test1118 test1119 test1120 test1121 test1122 test1123 test1124 test1125 \
test1126 test1127 test1128 test1129 test1130 test1131 \
test1200 test1201 test1202 test1203 test1204 test1205 test1206 test1207 \
test1208 test1209 test1210 \
+test1220 \
test1300 test1301 test1302 test1303 test1304 test1305 \
test1306 test1307 test1308 test1309 test1310 test1311 test1312 test1313 \
test1314 \
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 @@
+<testcase>
+# Server-side
+<reply>
+<data>
+</data>
+</reply>
+
+# Client-side
+<client>
+<server>
+file
+</server>
+ <name>
+file:// URLs with query string
+ </name>
+ <command>
+file://localhost/%PWD/log/test1220.txt?a_query=foobar#afragment
+</command>
+<file name="log/test1220.txt">
+contents in a single file
+</file>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<stdout>
+contents in a single file
+</stdout>
+</verify>
+</testcase>