1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6multi 7CURLOPT_OPENSOCKETFUNCTION 8CURLOPT_CLOSESOCKETFUNCTION 9</keywords> 10</info> 11 12# Server-side 13<reply> 14<data> 15HTTP/1.1 302 eat this! 16Date: Tue, 09 Nov 2010 14:49:00 GMT 17Server: test-server/fake 18Location: this-is-the-first.html 19Content-Length: 0 20Connection: close 21 22</data> 23<datacheck> 24[OPEN] counter: 1 25HTTP/1.1 302 eat this! 26Date: Tue, 09 Nov 2010 14:49:00 GMT 27Server: test-server/fake 28Location: this-is-the-first.html 29Content-Length: 0 30Connection: close 31 32[CLOSE] counter: 1 33</datacheck> 34</reply> 35 36# Client-side 37<client> 38<server> 39http 40</server> 41<features> 42http 43</features> 44# tool is what to use instead of 'curl' 45<tool> 46lib%TESTNUMBER 47</tool> 48 49<name> 50socket open/close callbacks 51</name> 52<command> 53http://%HOSTIP:%HTTPPORT/%TESTNUMBER 54</command> 55</client> 56 57# Verify data after the test has been "shot" 58<verify> 59<protocol> 60GET /%TESTNUMBER HTTP/1.1 61Host: %HOSTIP:%HTTPPORT 62Accept: */* 63 64</protocol> 65</verify> 66</testcase> 67