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 | <reply> |
| 10 | <data> |
| 11 | HTTP/1.1 200 OK
|
| 12 | Date: Thu, 22 Jul 2010 11:22:33 GMT
|
| 13 | Connection: close
|
| 14 | Content-Type: text/html
|
| 15 | X-Control: swsclose
|
| 16 | Content-Length: 2
|
| 17 |
|
| 18 | %hex[%00]hex% |
| 19 | </data> |
| 20 | </reply> |
| 21 | |
| 22 | <client> |
| 23 | <server> |
| 24 | http |
| 25 | </server> |
| 26 | <name> |
| 27 | Binary zero in data element. |
| 28 | </name> |
| 29 | <features> |
| 30 | proxy |
| 31 | </features> |
| 32 | <command> |
| 33 | --raw http://%HOSTIP:%HTTPPORT/binary-zero-in-data-section/%TESTNUMBER |
| 34 | </command> |
| 35 | </client> |
| 36 | |
| 37 | <verify> |
| 38 | <protocol> |
| 39 | GET /binary-zero-in-data-section/%TESTNUMBER HTTP/1.1
|
| 40 | Host: %HOSTIP:%HTTPPORT
|
| 41 | User-Agent: curl/%VERSION
|
| 42 | Accept: */*
|
| 43 |
|
| 44 | </protocol> |
| 45 | <errorcode> |
| 46 | 0 |
| 47 | </errorcode> |
| 48 | </verify> |
| 49 | </testcase> |