test1948 (1036B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP POST 6 HTTP PUT 7 </keywords> 8 </info> 9 10 # Server-side 11 <reply> 12 <data> 13 HTTP/1.1 200 OK 14 Date: Thu, 01 Nov 2001 14:49:00 GMT 15 Content-Type: text/html 16 Content-Length: 6 17 18 hello 19 </data> 20 <datacheck> 21 HTTP/1.1 200 OK 22 Date: Thu, 01 Nov 2001 14:49:00 GMT 23 Content-Type: text/html 24 Content-Length: 6 25 26 hello 27 HTTP/1.1 200 OK 28 Date: Thu, 01 Nov 2001 14:49:00 GMT 29 Content-Type: text/html 30 Content-Length: 6 31 32 hello 33 </datacheck> 34 </reply> 35 36 # Client-side 37 <client> 38 <server> 39 http 40 </server> 41 42 <name> 43 CURLOPT_POST after CURLOPT_UPLOAD reusing handle 44 </name> 45 <tool> 46 lib%TESTNUMBER 47 </tool> 48 49 <command> 50 http://%HOSTIP:%HTTPPORT/%TESTNUMBER 51 </command> 52 </client> 53 54 # Verify data after the test has been "shot" 55 <verify> 56 <protocol> 57 PUT /%TESTNUMBER HTTP/1.1 58 Host: %HOSTIP:%HTTPPORT 59 Accept: */* 60 Content-Length: 22 61 62 This is test PUT data 63 POST /1948 HTTP/1.1 64 Host: %HOSTIP:%HTTPPORT 65 Accept: */* 66 Content-Length: 22 67 Content-Type: application/x-www-form-urlencoded 68 69 This is test PUT data 70 </protocol> 71 </verify> 72 </testcase>