1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP PUT
6</keywords>
7</info>
8# Server-side
9<reply>
10<data>
11HTTP/1.1 100 Continue
12
13HTTP/1.1 401 Bad Auth swsclose
14Date: Thu, 09 Nov 2010 14:49:00 GMT
15WWW-Authenticate: Basic Realm=authenticate
16Server: test-server/fake
17</data>
18<datacheck>
19HTTP/1.1 100 Continue
20
21</datacheck>
22
23</reply>
24
25# Client-side
26<client>
27<server>
28http
29</server>
30 <name>
31HTTP PUT from file with 100 + 401 responses and -f without auth given
32 </name>
33 <command>
34http://%HOSTIP:%HTTPPORT/we/want/281 -f -T log/test281.txt
35</command>
36<file name="log/test281.txt">
37Weird
38     file
39         to
40   upload
41</file>
42</client>
43
44# Verify data after the test has been "shot"
45<verify>
46<errorcode>
4722
48</errorcode>
49<strip>
50^User-Agent:.*
51</strip>
52<protocol>
53PUT /we/want/281 HTTP/1.1
54Host: %HOSTIP:%HTTPPORT
55Accept: */*
56Content-Length: 38
57Expect: 100-continue
58
59Weird
60     file
61         to
62   upload
63</protocol>
64</verify>
65</testcase>
66