陸壓請進。。。解碼問題
文章內容
(你知道的)-- 拿回來的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 | 引用 |
陸壓 |