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