]> granicus.if.org Git - curl/commitdiff
added test 199
authorDaniel Stenberg <daniel@haxx.se>
Fri, 7 Jan 2005 21:09:50 +0000 (21:09 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 7 Jan 2005 21:09:50 +0000 (21:09 +0000)
tests/data/Makefile.am
tests/data/test199 [new file with mode: 0644]

index 2374955436434536dd527a65b34b676b0f783ed8..79ee0609b195add3e6fb5590393b7133f85059ad 100644 (file)
@@ -29,8 +29,9 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46        \
  test184 test185 test186 test187 test188 test189 test191 test192       \
  test193 test194 test195 test196 test197 test198 test515 test516       \
  test517 test518 test210 test211 test212 test220 test221 test222       \
- test223 test224 test206 test207 test208 test209 test213 test240        \
- test241 test242 test519 test214 test215 test216 test217 test218
+ test223 test224 test206 test207 test208 test209 test213 test240       \
+ test241 test242 test519 test214 test215 test216 test217 test218       \
+ test199
 
 # The following tests have been removed from the dist since they no longer
 # work. We need to fix the test suite's FTPS server first, then bring them
diff --git a/tests/data/test199 b/tests/data/test199
new file mode 100644 (file)
index 0000000..875815e
--- /dev/null
@@ -0,0 +1,52 @@
+#
+# Server-side
+<reply name="1">
+<data>
+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: 6
+Connection: close
+Content-Type: text/html
+Funny-head: yesyes
+
+<foo>
+</data>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+http
+</server>
+ <name>
+HTTP with -d, -G and {}
+ </name>
+ <command>
+-d "foo=moo&moo=poo" http://%HOSTIP:%HTTPPORT/{199,199} -G
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^User-Agent:.*
+</strip>
+<protocol>
+GET /199?foo=moo&moo=poo HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
+Pragma: no-cache\r
+Accept: */*\r
+\r
+GET /199?foo=moo&moo=poo HTTP/1.1\r
+Host: %HOSTIP:%HTTPPORT\r
+Pragma: no-cache\r
+Accept: */*\r
+\r
+</protocol>
+</verify>