Here is a patch I wrote more than a year ago that
allows Privoxy to decompress and filter
gzip-compressed data. Sorry about not submitting it
earlier, but I dusted it off tonight and thought I'd
post it now.
To summarize, when we need to filter data sent by a
server and it is compressed, this patch allows Privoxy
to decompress it, filter, and send the result to the
client decompressed. Possible future improvements
include re-compressing after filtering but before
sending to the client (would this be useful?), and
allowing Privoxy to accept compressed data even if the
client doesn't.
I've tested the patch with servers that send
"Content-Encoding: gzip" (e.g. Slashdot), and it seems
to be stable. Previously I also tested with zlib
compression, but I'm not sure that zlib is ever used in
practice anyway.
To use:
apply the patch
run configure with the --enable-zlib option
start privoxy and test
Note that this patch currently disables Privoxy's
default of removing Accept-Encoding headers that allow
compression. It doesn't yet include any documentation,
but I can add some if this is received well.
The patch is against latest CVS, but should apply
without major changes to any recent version.
Comments are appreciated.
Fabian Keil
new feature
None
Public
|
Date: 2007-07-28 09:03
|
|
Date: 2007-07-27 22:41
|
|
Date: 2007-01-16 03:20
|
|
Date: 2007-01-03 11:52
|
|
Date: 2007-01-01 20:03
|
|
Date: 2006-08-18 13:07 Logged In: YES |
|
Date: 2006-08-05 18:22 Logged In: YES |
|
Date: 2006-08-05 16:46 Logged In: YES |
|
Date: 2004-02-13 03:24 Logged In: YES |
|
Date: 2004-02-13 02:50 Logged In: YES |
|
Date: 2004-02-12 16:04 Logged In: YES |
|
Date: 2004-02-12 10:32 Logged In: YES |
| Filename | Description | Download |
|---|---|---|
| privoxy-3.0.3-roro-gzip.patch | Roland's 3.0.3 version of the patch | Download |
| privoxy-wtm.patch | gzip and zlib decompression, revision 1 | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Pending | 2007-01-16 03:20 | sf-robot |
| close_date | 2007-01-01 20:03 | 2007-01-16 03:20 | sf-robot |
| status_id | Open | 2007-01-01 20:03 | fabiankeil |
| close_date | - | 2007-01-01 20:03 | fabiankeil |
| resolution_id | None | 2007-01-01 14:29 | fabiankeil |
| assigned_to | nobody | 2007-01-01 14:29 | fabiankeil |
| File Added | 189657: privoxy-3.0.3-roro-gzip.patch | 2006-08-18 13:07 | david__schmidt |
| File Added | 76423: privoxy-wtm.patch | 2004-02-12 08:26 | wmahan |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use