Debian Codegraph @

curl/tests/data/test508

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 lib508
23 </tool>
24
25 <name>
26 send HTTP POST using read callback
27 </name>
28 <command>
29 http://%HOSTIP:%HTTPPORT/508
30 </command>
31 </client>
32
33 #
34 # Verify data after the test has been "shot"
35 <verify>
36 <protocol>
37 POST /508 HTTP/1.1
38 Host: 127.0.0.1:%HTTPPORT
39 Accept: */*
40 Content-Length: 45
41 Content-Type: application/x-www-form-urlencoded
42 Expect: 100-continue
43
44 this is what we post to the silly web server
45 </protocol>
46 </verify>