mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
added test 510, callback-based POST using chunked encoding
This commit is contained in:
parent
aaa42735e6
commit
99a3e2d769
@ -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
|
||||
|
55
tests/data/test510
Normal file
55
tests/data/test510
Normal file
@ -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>
|
Loading…
x
Reference in New Issue
Block a user