--> sockwrite -n $sockname Accept-Encoding: gzip,deflate

support for gzip encoding would be nice too.