Debian Codegraph @

curl/tests/data/test510

raw
1 #
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 200 OK
6 Date: Thu, 09 Nov 2010 14:49:00 GMT
7 Server: test-server/fake swsclose
8 Connection: close
9 Content-Type: text/html
10
11 hello
12 </data>
13 </reply>
14
15 # Client-side
16 <client>
17 <server>
18 http
19 </server>
20 # tool is what to use instead of 'curl'
21 <tool>
22 lib510
23 </tool>
24
25 <name>
26 send HTTP POST using read callback, using chunked transfer-encoding
27 </name>
28 <command>
29 http://%HOSTIP:%HTTPPORT/510
30 </command>
31 </client>
32
33 #
34 # Verify data after the test has been "shot"
35 <verify>
36 <protocol>
37 POST /510 HTTP/1.1
38 Host: 127.0.0.1:%HTTPPORT
39 Accept: */*
40 Transfer-Encoding: chunked
41 Content-Type: application/x-www-form-urlencoded
42 Expect: 100-continue
43
44 3
45 one
46 3
47 two
48 5
49 three
50 1d
51 and a final longer crap: four
52 0
53
54 </protocol>
55 </verify>