diff options
author | Julien Chaffraix <julien.chaffraix@gmail.com> | 2010-08-16 22:54:19 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-08-16 22:56:43 +0200 |
commit | 6b490ed33c3ffc4ac96719df7f8c5df46476579a (patch) | |
tree | 9cd0751ba8359060ecd056fb443192fc2bccb1da /tests/data/test578 | |
parent | 4d703ee1005cfc4cc1ff2b8dbbf4469de63d240f (diff) |
progress: callback for POSTs less than MAX_INITIAL_POST_SIZE
Add a call to Curl_pgrsSetUploadSize in this case valided by a test
case.
Reported by: Никита Дорохин.
Bug: http://curl.haxx.se/mail/lib-2010-04/0173.html
Diffstat (limited to 'tests/data/test578')
-rw-r--r-- | tests/data/test578 | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/data/test578 b/tests/data/test578 new file mode 100644 index 000000000..0b6a43731 --- /dev/null +++ b/tests/data/test578 @@ -0,0 +1,52 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP POST +</keywords> +</info> +# +# Server-side +<reply name="1"> +<data mode="text"> +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> +# tool is what to use instead of 'curl' +<tool> +lib578 +</tool> + + <name> +HTTP POST lower than MAX_INITIAL_POST_SIZE with progress callback + </name> + <command> +http://%HOSTIP:%HTTPPORT/500 log/ip578 +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<file name="log/ip578" mode="text"> +PASSED, UL data matched data size +</file> +</verify> +</testcase> |