1#!/usr/bin/env python 2import zlib 3import os 4from StringIO import StringIO 5 6# Always returns a gzipped response body 7print "Status: 200 Ok" 8print "" 9 10print(zlib.compress('This is a compressed string')) 11 12 13