diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/Makefile.am | 5 | ||||
-rw-r--r-- | tests/data/test199 | 52 |
2 files changed, 55 insertions, 2 deletions
diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 237495543..79ee0609b 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -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 index 000000000..875815eb4 --- /dev/null +++ b/tests/data/test199 @@ -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
+Host: %HOSTIP:%HTTPPORT
+Pragma: no-cache
+Accept: */*
+
+GET /199?foo=moo&moo=poo HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Pragma: no-cache
+Accept: */*
+
+</protocol> +</verify> |