added support for (zlib compressed and/or JSON encoded) POST and PUT payloads