陆压请进。。。解码问题
文章内容
(你知道的)-- 拿回来的response package标记是gzip,但是直接用.NET gzip lib函数解压缩,提示“不是正确的gzip格式,幻数错误”啥的,你是怎么解包的?
btw,现在用另外一个方案倒是挺方便的,但还是想自己解包
btw,现在用另外一个方案倒是挺方便的,但还是想自己解包
分享: | 分享到微信 |
文章评论
陆压 | 无题 tried DeflateStream ?
2014-09-28 08:30:19 | 引用 |
Re: 陆压请进。。。解码问题 I tried many different ways, and one of it like this:
It stops at 'Deserialize' for that error 2014-09-28 09:38:15 | 引用 |
webdriver |
陆压 | 无题 At least, i would try deflate first, then decode the gb2312
2014-09-28 10:01:09 | 引用 |
无题 报告老大,这里有人明目张胆地教授机器人发帖技术。。。:lol:
2014-09-28 10:12:52 | 引用 |
本那比经略 |
六叔 | 无题 2014-09-28 11:23:15 | 引用 |
无题
if you have time, try on your side and let me know what you got. for me a quick way to compare the result is to view what packets sniffer got. 2014-09-28 11:49:10 | 引用 |
webdriver |
webdriver | Re: 陆压请进。。。解码问题 btw here is what the sniffer got the response header:
------------------------------------------------------- HTTP/1.1 200 OK Date: Sun, 28 Sep 2014 18:49:59 GMT Server: Apache ..... ..... ..... Content-Encoding: gzip Vary: Accept-Encoding X-Powered-By: PleskLin MS-Author-Via: DAV Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=GB2312 ------------------------------------------------------ 2014-09-28 11:53:49 | 引用 |
无题 2014-09-28 12:08:39 | 引用 |
本那比经略 |
陆压 | 无题
that's all 2014-09-28 13:36:20 | 引用 |
无题
works for me. 2014-09-28 13:36:49 | 引用 |
陆压 |