Git init
[external/curl.git] / tests / data / test1064
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP PUT
6 </keywords>
7 </info>
8
9 <reply>
10 <data nocheck="yes">
11 HTTP/1.1 200 A OK\r
12 Server: curl test\r
13 Content-Type: text/html; charset=iso-8859-1\r
14 Content-Length: 3\r
15 \r
16 ok
17 </data>
18 <data2 nocheck="yes">
19 HTTP/1.1 200 A OK\r
20 Server: curl test\r
21 Content-Type: text/html; charset=iso-8859-1\r
22 Content-Length: 9\r
23 \r
24 still ok
25 </data2>
26 </reply>
27
28 # Client-side
29 <client>
30
31 <server>
32 http
33 </server>
34  <name>
35 HTTP PUT twice
36  </name>
37  <command>
38 -H "Expect:" -T log/1064 http://%HOSTIP:%HTTPPORT/1064.upload1 -T log/1064 http://%HOSTIP:%HTTPPORT/10640002.upload2
39 </command>
40 <file name="log/1064">
41 test
42 </file>
43 </client>
44
45 # Verify data after the test has been "shot"
46 <verify>
47 <strip>
48 ^User-Agent:.*
49 </strip>
50 <protocol>
51 PUT /1064.upload1 HTTP/1.1\r
52 Host: %HOSTIP:%HTTPPORT\r
53 Accept: */*\r
54 Content-Length: 5\r
55 \r
56 test
57 PUT /10640002.upload2 HTTP/1.1\r
58 Host: %HOSTIP:%HTTPPORT\r
59 Accept: */*\r
60 Content-Length: 5\r
61 \r
62 test
63 </protocol>
64 <stdout>
65 HTTP/1.1 200 A OK\r
66 Server: curl test\r
67 Content-Type: text/html; charset=iso-8859-1\r
68 Content-Length: 3\r
69 \r
70 ok
71 HTTP/1.1 200 A OK\r
72 Server: curl test\r
73 Content-Type: text/html; charset=iso-8859-1\r
74 Content-Length: 9\r
75 \r
76 still ok
77 </stdout>
78 </verify>
79 </testcase>