0

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);
?>
hjpotter92
  • 78,589
  • 36
  • 144
  • 183
user3851593
  • 27
  • 1
  • 9

1 Answers1

-1

Are you trying to decompress GZip in lua or in PHP?

lua: lua compress DEFLATE

PHP: How can I extract or uncompress gzip file using php?

Community
  • 1
  • 1
111WARLOCK111
  • 153
  • 1
  • 1
  • 9