| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> | 
 | 2 | <info> | 
 | 3 | <keywords> | 
 | 4 | HTTP | 
 | 5 | HTTP GET | 
 | 6 | </keywords> | 
 | 7 | </info> | 
 | 8 |  | 
 | 9 | # Server-side | 
 | 10 | <reply> | 
 | 11 | <data nocheck="yes"> | 
 | 12 | HTTP/1.1 200 OK swsclose
 | 
 | 13 | Date: Tue, 09 Nov 2010 14:49:00 GMT
 | 
 | 14 | Content-Length: 9
 | 
 | 15 | 
 | 
 | 16 | surprise | 
 | 17 | </data> | 
 | 18 | <data1> | 
 | 19 | HTTP/1.1 200 OK swsclose
 | 
 | 20 | Date: Tue, 09 Nov 2010 14:49:00 GMT
 | 
 | 21 | Connection: close
 | 
 | 22 | 
 | 
 | 23 | surprise2 | 
 | 24 | </data1> | 
 | 25 |  | 
 | 26 | <postcmd> | 
 | 27 | wait 1 | 
 | 28 | </postcmd> | 
 | 29 | </reply> | 
 | 30 |  | 
 | 31 | # Client-side | 
 | 32 | <client> | 
 | 33 | <server> | 
 | 34 | http | 
 | 35 | </server> | 
 | 36 |  <name> | 
 | 37 | HTTP with delayed close, conn reuse, connection reset and retry | 
 | 38 |  </name> | 
 | 39 |  <command> | 
 | 40 | http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/wantmore/%TESTNUMBER0001 | 
 | 41 | </command> | 
 | 42 | </client> | 
 | 43 |  | 
 | 44 | # Verify data after the test has been "shot" | 
 | 45 | <verify> | 
 | 46 | <stdout> | 
 | 47 | HTTP/1.1 200 OK swsclose
 | 
 | 48 | Date: Tue, 09 Nov 2010 14:49:00 GMT
 | 
 | 49 | Content-Length: 9
 | 
 | 50 | 
 | 
 | 51 | surprise | 
 | 52 | HTTP/1.1 200 OK swsclose
 | 
 | 53 | Date: Tue, 09 Nov 2010 14:49:00 GMT
 | 
 | 54 | Connection: close
 | 
 | 55 | 
 | 
 | 56 | surprise2 | 
 | 57 | </stdout> | 
 | 58 |  | 
 | 59 | <protocol> | 
 | 60 | GET /want/%TESTNUMBER HTTP/1.1
 | 
 | 61 | Host: %HOSTIP:%HTTPPORT
 | 
 | 62 | User-Agent: curl/%VERSION
 | 
 | 63 | Accept: */*
 | 
 | 64 | 
 | 
 | 65 | GET /wantmore/%TESTNUMBER0001 HTTP/1.1
 | 
 | 66 | Host: %HOSTIP:%HTTPPORT
 | 
 | 67 | User-Agent: curl/%VERSION
 | 
 | 68 | Accept: */*
 | 
 | 69 | 
 | 
 | 70 | </protocol> | 
 | 71 | </verify> | 
 | 72 | </testcase> |