Post Reply 
Proposed Accept-Encoding header filter change.
Dec. 28, 2010, 07:46 PM (This post was last modified: Dec. 30, 2010 02:49 PM by JJoe.)
Post: #1
Proposed Accept-Encoding header filter change.
Code:
[HTTP headers]
In = FALSE
Out = TRUE
Key = "Accept-Encoding: 2 GZip first|specified     10.12.30 [srl] (d.1) (Out) MOD"
URL = "^$TST(volat=*.encoded:1.*)|$TST(keyword=*.a_web.*)"
Match = "$TST(s_AccEnc=?*)|(?*,&((*, )++(gzip$SET(1=,gzip)|x-gzip$SET(2=,x-gzip)|deflate$SET(3=,deflate)))+{1,3}$SET(s_AccEnc=\1\3)$TST(s_AccEnc=,\5)$SET(s_AccEnc=\5))"
Replace = "$GET(s_AccEnc)$SET(s_AccEnc=)"

Exceptions lists entry

Code:
## Specify Accept-Encoding header     $SET(s_AccEnc=)$SET(0=s_AccEnc:.)
##
## Accept-Encoding header filter's default behaviour:
## "gzip", "x-gzip", and "deflate" methods may be decompressed by the Proxomitron.
## When any of these methods are present, other methods are removed from the header.
## When any of these methods are present, order is gzip,x-gzip,deflate
## When not present, the header is not altered by the filter.
##
## Use $SET(s_AccEnc=) to modify the filter's behaviour.
## Example:
##   Specify gzip at foobar.com/:
##   foobar.com/ $SET(s_AccEnc=gzip) $SET(0=s_AccEnc:gzip.)
## OR
## Edit "$SET(s_AccEnc=\1\2\3)" in the "Accept-Encoding: 2 GZip first|specified" header filter.
##

Reason: http://prxbx.com/forums/showthread.php?t...&pid=15187
Current filter, "Accept-Encoding: 2 GZip only 07.11.16 [srl] (d.1) (Out)", causes a server at IBM, http://www-31.ibm.com/storage/cn/disk/ds5020/specs.shtml , to send Opera a chunked deflate stream that the Proxomitron can't handle and may send an empty Accept-Encoding header.


Test and report, please.

Note: to get the header filters to order properly, I must import, save, exit the Proxomitron, start the Proxomitron, click "Config" on the Proxomitron's main screen, click "OK", and save again. When in doubt, open the config in an editor and verify.

Edit: 10.12.29 pack200-gzip issue "*(gzip" changed to "(*, )++(gzip"
Edit: 10.12.30 x-gzip removed by default "(\1\2\3)" changed to "(\1\3)"
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Proposed Accept-Encoding header filter change. - JJoe - Dec. 28, 2010 07:46 PM

Forum Jump: