From: Jan K. <jj...@gm...> - 2006-09-04 10:37:30
|
Dear all, I use TclHttpd for the web driven configuration of an embedded device. For some reason, I have to generate rather big (1MB) HTML pages for some configuration screens. When doing remote support, one would have to upload this much information through a 128kBit/s or modem line, which would be very disturbing to work with. HTTP has an optional return-header "Content-Encoding", which allows to e.g. gzip the data on the server side and the browser will automagically gunzip it. As tclhttpd doesn't support this useful feature, I'd written some lines myself. The Trf package (http://sourceforge.net/projects/tcltrf) and good ol' zlib are used to do the actual compression. It's not beautified nor in proper patch format right now -- I just wonder if anyone of you is interested in this, too. Please see the attachment. Kind regards Jan -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. -- Linus Torvalds |