X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=tests%2Fcts%2Fcontent-filters%2Fdata%2Ftest16;fp=tests%2Fcts%2Fcontent-filters%2Fdata%2Ftest16;h=251a31bcfa2c044512f614619bc7086000cf4f38;hb=1773ba22356d917738727dc1d530ac7e6de73fa6;hp=0000000000000000000000000000000000000000;hpb=0614571a6e69b29462cdf93f0cb371a6fa04356b;p=privoxy.git diff --git a/tests/cts/content-filters/data/test16 b/tests/cts/content-filters/data/test16 new file mode 100644 index 00000000..251a31bc --- /dev/null +++ b/tests/cts/content-filters/data/test16 @@ -0,0 +1,216 @@ + + + +HTTP +HTTP GET +filter demoronizer + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose + +# Here are some supposedly moronic byte sequences the demoronizer filter should filter: + +# pcrs command 1: + + +{ +ÿ + +# pcrs command 2: + +%hex[ %E2%80%94 ]hex% + +# pcrs command 3: + +%hex[ %82 ]hex% + +# pcrs command 4 (commented out, no change expected): + +%hex[ %83 ]hex% + +# pcrs command 5: + +%hex[ %84 ]hex% + +# pcrs command 6: + +%hex[ %85 ]hex% + +# pcrs command 7 (commented out, no change expected): + +%hex[ %88 ]hex% + +# pcrs command 8 (commented out, no change expected): + +%hex[ %89 ]hex% + +# pcrs command 9: + +%hex[ %8B ]hex% + +# pcrs command 10: + +%hex[ %8C ]hex% + +# pcrs command 11: + +%hex[ %91 ]hex% + +# pcrs command 12: + +%hex[ %92 ]hex% + +# pcrs command 13: + +%hex[ %92%94 ]hex% + +# pcrs command 14: + +%hex[ %95 ]hex% + +# pcrs command 15: + +%hex[ %96 ]hex% + +# pcrs command 16: + +%hex[ %97 ]hex% + +# pcrs command 17 (commented out, no change expected): + +%hex[ %98 ]hex% + +# pcrs command 18 (commented out, no change expected): + +%hex[ %99 ]hex% + +# pcrs command 19 + +%hex[ %9B ]hex%/> + + + + + +HTTP/1.1 200 OK +Date: Thu, 22 Jul 2010 11:22:33 GMT +Connection: close +Content-Type: text/html +X-Control: swsclose +Content-Length: 771 + +# Here are some supposedly moronic byte sequences the demoronizer filter should filter: + +# pcrs command 1: + + +{ +ÿ + +# pcrs command 2: + + -- + +# pcrs command 3: + + , + +# pcrs command 4 (commented out, no change expected): + +%hex[ %83 ]hex% + +# pcrs command 5: + + ,, + +# pcrs command 6: + + ... + +# pcrs command 7 (commented out, no change expected): + +%hex[ %88 ]hex% + +# pcrs command 8 (commented out, no change expected): + +%hex[ %89 ]hex% + +# pcrs command 9: + + < + +# pcrs command 10: + + Oe + +# pcrs command 11: + + ` + +# pcrs command 12: + + ' + +# pcrs command 13: + + '" + +# pcrs command 14: + + · + +# pcrs command 15: + + - + +# pcrs command 16: + + -- + +# pcrs command 17 (commented out, no change expected): + +%hex[ %98 ]hex% + +# pcrs command 18 (commented out, no change expected): + +%hex[ %99 ]hex% + +# pcrs command 19 + + > /> + + + + + +http + + ++filter{demoronizer} + + +proxy + + +http://%HOSTIP:%HTTPPORT/demoronizer/%TESTNUMBER + + + + + +GET /demoronizer/%TESTNUMBER HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +User-Agent: curl/%VERSION +Accept: */* +Connection: close + + + +