I'm learning php and for a small project I'm sending raw http posts to my web-server from a lua console. Anyway it's g-zipped and I cannot figure out how to decompress it. When I go to this site http://i-tools.org/gzip and try it, it doesn't work UNLESS I uncheck 'GZIP-compatible encoding'
my php code is
<?php
$file = 'place.txt';
$post_data = file_get_contents('php://input');
echo($post_data);
file_put_contents($file, $post_data . "\n", FILE_APPEND);
?>