【问题标题】:Gzip decompressingGzip解压
【发布时间】:2014-10-21 20:53:08
【问题描述】:

我正在学习 php,对于一个小项目,我正在从 lua 控制台向我的网络服务器发送原始 http 帖子。无论如何它是g-zipped,我不知道如何解压缩它。当我去这个网站http://i-tools.org/gzip 并尝试它时,它不起作用,除非我取消选中“GZIP 兼容编码”

我的php代码是

    <?php
  $file = 'place.txt';
      $post_data = file_get_contents('php://input');
      echo($post_data);
      file_put_contents($file, $post_data . "\n", FILE_APPEND);
?>

【问题讨论】:

  • 如果删除开始标签“

标签: php lua gzip compression


【解决方案1】:

你是用 lua 还是 PHP 解压 GZip?

卢阿: lua compress DEFLATE

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

【讨论】:

    猜你喜欢
    • 2012-06-26
    • 1970-01-01
    • 2017-09-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多