Debian Codegraph @

curl/tests/data/test218

raw
1 #
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.0 200 OK
6 Server: test-server/fake
7 Content-Type: text/html
8 Content-Length: 6
9
10 blaha
11 </data>
12 </reply>
13
14 #
15 # Client-side
16 <client>
17 <server>
18 http
19 </server>
20 <name>
21 HTTP PUT from a file but enforce chunked transfer-encoding
22 </name>
23 <command>
24 -T log/file218 -H "Transfer-Encoding: chunked" http://%HOSTIP:%HTTPPORT/218
25 </command>
26 <file name="log/file218">
27 just some tiny teeny contents
28 </file>
29 </client>
30
31 #
32 # Verify data after the test has been "shot"
33 <verify>
34 <strip>
35 ^User-Agent:.*
36 </strip>
37 <protocol>
38 PUT /218 HTTP/1.1
39 Host: 127.0.0.1:%HTTPPORT
40 Accept: */*
41 Transfer-Encoding: chunked
42 Expect: 100-continue
43
44 1e
45 just some tiny teeny contents
46
47 0
48
49 </protocol>
50 </verify>