aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-30 09:25:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-30 09:25:45 +0000
commit99a3e2d769c5eca02e60d88d76fb8821f94c059c (patch)
tree42c63dc2bef0f872ff9b9f436be77547b9b42d29
parentaaa42735e65d48147ae920c2a2e7cf11bfc4e02e (diff)
added test 510, callback-based POST using chunked encoding
-rw-r--r--tests/data/Makefile.am3
-rw-r--r--tests/data/test51055
2 files changed, 57 insertions, 1 deletions
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
+<reply>
+<data>
+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
+</data>
+</reply>
+
+# Client-side
+<client>
+<server>
+http
+</server>
+# tool is what to use instead of 'curl'
+<tool>
+lib510
+</tool>
+
+ <name>
+send HTTP POST using read callback, using chunked transfer-encoding
+ </name>
+ <command>
+http://%HOSTIP:%HOSTPORT/510
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol>
+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
+
+</protocol>
+</verify>