1<testcase> 2<info> 3<keywords> 4HTTP 5protocol 6--write-out 7</keywords> 8</info> 9# Server-side 10<reply> 11<data nocheck="yes"> 12HTTP/1.1 200 OK 13Date: Tue, 09 Nov 2010 14:49:00 GMT 14Content-Length: 9 15Connection: close 16Content-Type: text/plain 17 18testdata 19</data> 20 21</reply> 22 23# Client-side 24<client> 25<server> 26http 27</server> 28 29<name> 30Check if %{scheme} returns HTTP 31</name> 32<command> 33http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out '%{scheme}' 34</command> 35</client> 36 37# Verify data 38<verify> 39<stdout nonewline="yes"> 40HTTP/1.1 200 OK 41Date: Tue, 09 Nov 2010 14:49:00 GMT 42Content-Length: 9 43Connection: close 44Content-Type: text/plain 45 46testdata 47http 48</stdout> 49<protocol> 50GET /%TESTNUMBER HTTP/1.1 51Host: %HOSTIP:%HTTPPORT 52User-Agent: curl/%VERSION 53Accept: */* 54 55</protocol> 56</verify> 57</testcase> 58