| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> | 
 | 2 | <info> | 
 | 3 | <keywords> | 
 | 4 | HTTP | 
 | 5 | HTTP HEAD | 
 | 6 | HTTP/0.9 | 
 | 7 | </keywords> | 
 | 8 | </info> | 
 | 9 |  | 
 | 10 | # | 
 | 11 | # Server-side | 
 | 12 | <reply> | 
 | 13 | <data> | 
 | 14 | No headers at all, just data swsclose | 
 | 15 |  | 
 | 16 | Let's get | 
 | 17 |  | 
 | 18 | a little | 
 | 19 |  | 
 | 20 | so that | 
 | 21 |  | 
 | 22 | we | 
 | 23 |  | 
 | 24 | have | 
 | 25 |  | 
 | 26 | some | 
 | 27 |  | 
 | 28 | test | 
 | 29 |  | 
 | 30 | data to | 
 | 31 |  | 
 | 32 | verify | 
 | 33 | </data> | 
 | 34 | # make sure no data is written | 
 | 35 | <datacheck nonewline="yes"> | 
 | 36 |  | 
 | 37 | </datacheck> | 
 | 38 | </reply> | 
 | 39 |  | 
 | 40 | # | 
 | 41 | # Client-side | 
 | 42 | <client> | 
 | 43 | # hyper doesn't support HTTP/0.9 | 
 | 44 | <features> | 
 | 45 | !hyper | 
 | 46 | </features> | 
 | 47 | <server> | 
 | 48 | http | 
 | 49 | </server> | 
 | 50 |  <name> | 
 | 51 | HTTP HEAD, receive no headers only body | 
 | 52 |  </name> | 
 | 53 |  <command> | 
 | 54 | -I http://%HOSTIP:%HTTPPORT/%TESTNUMBER --http0.9 | 
 | 55 | </command> | 
 | 56 | </client> | 
 | 57 |  | 
 | 58 | # | 
 | 59 | # Verify data after the test has been "shot" | 
 | 60 | <verify> | 
 | 61 | <protocol> | 
 | 62 | HEAD /%TESTNUMBER HTTP/1.1
 | 
 | 63 | Host: %HOSTIP:%HTTPPORT
 | 
 | 64 | User-Agent: curl/%VERSION
 | 
 | 65 | Accept: */*
 | 
 | 66 | 
 | 
 | 67 | </protocol> | 
 | 68 | <errorcode> | 
 | 69 | 8 | 
 | 70 | </errorcode> | 
 | 71 | </verify> | 
 | 72 | </testcase> |