From 99a3e2d769c5eca02e60d88d76fb8821f94c059c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 30 Jan 2004 09:25:45 +0000 Subject: added test 510, callback-based POST using chunked encoding --- tests/data/Makefile.am | 3 ++- tests/data/test510 | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 tests/data/test510 (limited to 'tests') diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index 3078ee71b..18b8be8b9 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -24,7 +24,8 @@ test62 test63 test64 test65 test66 test144 test145 test67 test68 test41 \ test40 test42 test69 test70 test71 test72 test73 test146 test505 \ test74 test75 test76 test77 test78 test147 test148 test506 test79 test80 \ test81 test82 test83 test84 test85 test86 test87 test507 test149 test88 \ -test89 test90 test508 test91 test92 test203 test93 test94 test95 test509 +test89 test90 test508 test91 test92 test203 test93 test94 test95 test509 \ +test510 # 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/test510 b/tests/data/test510 new file mode 100644 index 000000000..b688ce490 --- /dev/null +++ b/tests/data/test510 @@ -0,0 +1,55 @@ +# +# Server-side + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake swsclose +Connection: close +Content-Type: text/html + +hello + + + +# Client-side + + +http + +# tool is what to use instead of 'curl' + +lib510 + + + +send HTTP POST using read callback, using chunked transfer-encoding + + +http://%HOSTIP:%HOSTPORT/510 + + + +# +# Verify data after the test has been "shot" + + +POST /510 HTTP/1.1 +Host: 127.0.0.1:8999 +Pragma: no-cache +Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* +Transfer-Encoding: chunked +Content-Type: application/x-www-form-urlencoded + +3 +one +3 +two +5 +three +1d +and a final longer crap: four +0 + + + -- cgit v1.2.3