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