Debian Codegraph @

curl/tests/data/test10

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP PUT
5 </keywords>
6 </info>
7 # Server-side
8 <reply>
9 <data>
10 HTTP/1.0 200 OK swsclose
11 Date: Thu, 09 Nov 2010 14:49:00 GMT
12 Server: test-server/fake
13
14 blablabla
15
16 </data>
17 </reply>
18
19 # Client-side
20 <client>
21 <server>
22 http
23 </server>
24 <name>
25 simple HTTP PUT from file
26 </name>
27 <command>
28 http://%HOSTIP:%HTTPPORT/we/want/10 -T log/test10.txt
29 </command>
30 <file name="log/test10.txt">
31 Weird
32 file
33 to
34 upload
35 for
36 testing
37 the
38 PUT
39 feature
40 </file>
41 </client>
42
43 # Verify data after the test has been "shot"
44 <verify>
45 <strip>
46 ^User-Agent:.*
47 </strip>
48 <protocol>
49 PUT /we/want/10 HTTP/1.1
50 Host: 127.0.0.1:%HTTPPORT
51 Accept: */*
52 Content-Length: 78
53 Expect: 100-continue
54
55 Weird
56 file
57 to
58 upload
59 for
60 testing
61 the
62 PUT
63 feature
64 </protocol>
65 </verify>