Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test87
index 40b274b..488037c 100644 (file)
@@ -1,6 +1,9 @@
 <testcase>
 <info>
 <keywords>
+HTTP
+HTTP GET
+globbing
 [] range
 FAILURE
 </keywords>
@@ -8,29 +11,51 @@ FAILURE
 #
 # Server-side
 <reply>
+<data1>
+HTTP/1.1 200 OK\r
+Funny-head: yesyes\r
+Content-Length: 15\r
+\r
+the number one
+</data1>
+<data2>
+HTTP/1.1 200 OK\r
+Funny-head: yesyes\r
+Content-Length: 16\r
+\r
+two is nice too
+</data2>
+
 </reply>
 #
 # Client-side
 <client>
 <server>
-none
+http
 </server>
 <features>
 http
 </features>
  <name>
-urlglob with bad -o #[num] usage
+urlglob with out of range -o #[num] usage
  </name>
  <command option="no-output">
-"http://%HOSTIP:%HTTPPORT/[870001-870003]" -o "log/dumpit#2.dump"
+"http://%HOSTIP:%HTTPPORT/[870001-870002]" -o "log/dumpit#2.dump"
 </command>
 </client>
 
 #
-# Verify data after the test has been "shot"
+# Verify data after the test has been "shot". Note that the command line
+# will write both responses into the same file name so only the second
+# survives
+#
 <verify>
-<errorcode>
-2
-</errorcode>
+<file name="log/dumpit#2.dump" mode="text">
+HTTP/1.1 200 OK\r
+Funny-head: yesyes\r
+Content-Length: 16\r
+\r
+two is nice too
+</file>
 </verify>
 </testcase>