1<testcase> 2# 3# Server-side 4<reply> 5<data mode="text"> 6HTTP/1.1 200 OK 7Date: Thu, 09 Nov 2010 14:49:00 GMT 8Server: test-server/fake swsclose 9Connection: close 10Content-Type: text/html 11 12hello 13</data> 14</reply> 15 16# Client-side 17<client> 18<server> 19http 20</server> 21# tool is what to use instead of 'curl' 22<tool> 23lib508 24</tool> 25 26 <name> 27send HTTP POST using read callback 28 </name> 29 <command> 30http://%HOSTIP:%HTTPPORT/508 31</command> 32</client> 33 34# 35# Verify data after the test has been "shot" 36<verify> 37<strippart> 38# remove CR that CURLOPT_TRANSFERTEXT added, when CharConv enabled: 39s/^(this is what we post to the silly web server)\r\n/$1\n/ if($has_charconv) 40</strippart> 41<protocol> 42POST /508 HTTP/1.1 43Host: %HOSTIP:%HTTPPORT 44Accept: */* 45Content-Length: 45 46Content-Type: application/x-www-form-urlencoded 47 48this is what we post to the silly web server 49</protocol> 50</verify> 51</testcase> 52