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