xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | compressed |
| 7 | FAILURE |
| 8 | </keywords> |
| 9 | </info> |
| 10 | # |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | # this brotli chunk has three bytes removed from the beginning |
| 14 | <data base64="yes"> |
| 15 | SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDA0IDIxOjU2OjUzIEdNVA0KU2Vy |
| 16 | dmVyOiBBcGFjaGUvMS4zLjMxIChEZWJpYW4gR05VL0xpbnV4KSBtb2RfZ3ppcC8xLjMuMjYuMWEg |
| 17 | UEhQLzQuMy45LTEgbW9kX3NzbC8yLjguMjAgT3BlblNTTC8wLjkuN2QgbW9kX3BlcmwvMS4yOQ0K |
| 18 | VmFyeTogQWNjZXB0LUVuY29kaW5nDQpDb250ZW50LVR5cGU6IHRleHQvaHRtbDsgY2hhcnNldD1J |
| 19 | U08tODg1OS0xDQpDb250ZW50LUVuY29kaW5nOiBicg0KQ29udGVudC1MZW5ndGg6IDEwNTYNCg0K |
| 20 | AJwFdhtdgaQ8i+mZBoO/lwogPKuqHpeP38jV5TDITTB7/oJVCS69FFDKWDVtMk8y4SfMSu/a9vvL |
| 21 | xWPweDCKePH/2y9VIkbF+EgCYSNs9v53J8QTIHT4ZucHCCRQiXRdT6XdE60KSlbIvobr5rJQsRn7 |
| 22 | ipIjMVMq3Go+/UXtY2d0yP1qaaGSxCn8nZuUNGh74KOI7EEkgFl1tjYytkpc9mJJy9J+wTTI+Hro |
| 23 | UQP2VR2DYkNoUECqgtOLlGcVEln4+eVzEWcrb8fNrcrVxLArJBpSd8FX8eZs8ebJUO7aBZ5epHz6 |
| 24 | zel7lhLlfHoQIkGh34riaSVr7VTGDmmO6HjSCzKO27LybZ9I3CtMSD2Il4mB131Tlcbut1BdzL4X |
| 25 | U4DZY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RmBT/wb5KK9YWBGnqPLO8isN2HS8gA |
| 39 | </data> |
| 40 | |
| 41 | <datacheck> |
| 42 | HTTP/1.1 200 OK
|
| 43 | Date: Mon, 29 Nov 2004 21:56:53 GMT
|
| 44 | Server: Apache/1.3.31 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.9-1 mod_ssl/2.8.20 OpenSSL/0.9.7d mod_perl/1.29
|
| 45 | Vary: Accept-Encoding
|
| 46 | Content-Type: text/html; charset=ISO-8859-1
|
| 47 | Content-Encoding: br
|
| 48 | Content-Length: 1056
|
| 49 |
|
| 50 | </datacheck> |
| 51 | |
| 52 | </reply> |
| 53 | |
| 54 | # |
| 55 | # Client-side |
| 56 | <client> |
| 57 | <features> |
| 58 | brotli |
| 59 | </features> |
| 60 | <server> |
| 61 | http |
| 62 | </server> |
| 63 | <name> |
| 64 | HTTP GET brotli compressed content with broken header |
| 65 | </name> |
| 66 | <command> |
| 67 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed |
| 68 | </command> |
| 69 | </client> |
| 70 | |
| 71 | # |
| 72 | # Verify data after the test has been "shot" |
| 73 | <verify> |
| 74 | <strippart> |
| 75 | s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/ |
| 76 | </strippart> |
| 77 | <protocol> |
| 78 | GET /%TESTNUMBER HTTP/1.1
|
| 79 | Host: %HOSTIP:%HTTPPORT
|
| 80 | User-Agent: curl/%VERSION
|
| 81 | Accept: */*
|
| 82 | Accept-Encoding: xxx
|
| 83 |
|
| 84 | </protocol> |
| 85 | <errorcode> |
| 86 | 61 |
| 87 | </errorcode> |
| 88 | </verify> |
| 89 | </testcase> |