0

Firefox 扩展:http://mikelsv.ru/extension_ci.xpi (update: var site_url="you site/php_code.php"; in chrome\content\accelerator.js ) PHP 代码:pastebin.com/hbSNfp1e

如何工作:

<br>
PHP: form method=post action=https://java.shadowlands.ru/zombievk/items?compress=true&lang=ru

extension: if(http-on-examine-response && url=='shadowlands...') new TracingListener();
<br>TracingListener.onDataAvailable(){ this.receivedData.push(data); }
<br>TracingListener.onStopRequest(){ send_post_data(this.receivedData.join()); to site_url; }

PHP: $postdata = file_get_contents("php://input");
<br> gzuncompress(base64_decode($data)));

问题:gzip 数据损坏。如果:form action=.../items?compress=true&lang=<b>en</b>

我需要做什么来解决这个问题?

4

1 回答 1

0

我发现了问题。我省略了该.join方法的分隔符参数,因此使用了默认分隔符 ( ,)。我通过提供一个空字符串作为分隔符解决了这个问题:

var responseSource = this.receivedData.join();

变成:

var responseSource = this.receivedData.join('');
于 2013-10-14T19:53:22.227 回答