test1064 (1267B)
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 12 Server: curl test 13 Content-Type: text/html; charset=iso-8859-1 14 Content-Length: 3 15 16 ok 17 </data> 18 <data2 nocheck="yes"> 19 HTTP/1.1 200 A OK 20 Server: curl test 21 Content-Type: text/html; charset=iso-8859-1 22 Content-Length: 9 23 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 %LOGDIR/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER.upload1 -T %LOGDIR/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0002.upload2 39 </command> 40 <file name="%LOGDIR/%TESTNUMBER"> 41 test 42 </file> 43 </client> 44 45 # Verify data after the test has been "shot" 46 <verify> 47 <protocol> 48 PUT /%TESTNUMBER.upload1 HTTP/1.1 49 Host: %HOSTIP:%HTTPPORT 50 User-Agent: curl/%VERSION 51 Accept: */* 52 Content-Length: 5 53 54 test 55 PUT /%TESTNUMBER0002.upload2 HTTP/1.1 56 Host: %HOSTIP:%HTTPPORT 57 User-Agent: curl/%VERSION 58 Accept: */* 59 Content-Length: 5 60 61 test 62 </protocol> 63 <stdout> 64 HTTP/1.1 200 A OK 65 Server: curl test 66 Content-Type: text/html; charset=iso-8859-1 67 Content-Length: 3 68 69 ok 70 HTTP/1.1 200 A OK 71 Server: curl test 72 Content-Type: text/html; charset=iso-8859-1 73 Content-Length: 9 74 75 still ok 76 </stdout> 77 </verify> 78 </testcase>