Debian Codegraph @

curl/tests/data/test58

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 HTTP PUT from file with weird letters
26 </name>
27 <command>
28 http://%HOSTIP:%HTTPPORT/we/want/ -T log/58te[]st.txt -g
29 </command>
30 <file name="log/58te[]st.txt">
31 a few bytes
32 </file>
33 </client>
34
35 # Verify data after the test has been "shot"
36 <verify>
37 <strip>
38 ^User-Agent:.*
39 </strip>
40 <protocol>
41 PUT /we/want/58te%5B%5Dst%2Etxt HTTP/1.1
42 Host: 127.0.0.1:%HTTPPORT
43 Accept: */*
44 Content-Length: 12
45 Expect: 100-continue
46
47 a few bytes
48 </protocol>
49 </verify>