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