0ff5e7e05bb0d3034d22f0f7e3f6462725ffd772
[external/curl.git] / tests / data / test156
1 <testcase>
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 200 No Authorization Required swsclose\r
6 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
7 Content-Type: text/html; charset=iso-8859-1\r
8 Connection: close\r
9 \r
10 PUT received fine. Thank you very much
11 </data>
12 </reply>
13
14 # Client-side
15 <client>
16 <server>
17 http
18 </server>
19  <name>
20 HTTP PUT with --anyauth (when the server requires none)
21  </name>
22  <command>
23 http://%HOSTIP:%HTTPPORT/156 -T log/put156 -u testuser:testpass --anyauth
24 </command>
25 <file name="log/put156">
26 This is data we upload with PUT
27 a second line
28 line three
29 four is the number of lines
30 </file>
31 </client>
32
33 # Verify data after the test has been "shot"
34 <verify>
35 <strip>
36 ^User-Agent:.*
37 </strip>
38 <protocol>
39 PUT /156 HTTP/1.1\r
40 User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
41 Host: %HOSTIP:%HTTPPORT\r
42 Accept: */*\r
43 Content-Length: 85\r
44 Expect: 100-continue\r
45 \r
46 This is data we upload with PUT
47 a second line
48 line three
49 four is the number of lines
50 </protocol>
51 </verify>
52 </testcase>