陸壓請進。。。解碼問題

文章內容

(你知道的)-- 拿回來的response package標記是gzip,但是直接用.NET gzip lib函數解壓縮,提示“不是正確的gzip格式,幻數錯誤”啥的,你是怎麼解包的?

btw,現在用另外一個方案倒是挺方便的,但還是想自己解包 icon_rolleyes.gif
QR Code
請用微信 掃一掃 掃描上面的二維碼,然後點擊頁面右上角的 ... 圖標,然後點擊 發送給朋友分享到朋友圈,謝謝!
分享:
分享到微信

文章評論

webdriver
無題
陸壓 寫道:
陸壓 寫道:
代碼:

            myReq.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;

that's all

works for me.


a212.gif a212.gif It works like a Charm! a214.gif a214.gif
-- 看來還是對這些類用得不熟,不知道可以直接在Request裡設定Response的解碼。

2014-09-28 22:01:19 | 引用
上一頁12下一頁

發表評論

個人簡介

webdriver
『人生游戲,游戲人生』


日志分類
最新日志
此功能已被空間主人關閉
博客搜索
 
快速導航
友情鏈接
此功能已被空間主人關閉
博客統計
點擊: 690946
帖子數量: 691
開辟個人空間: 2008-10-15
最後更新: 2018-05-11
左鄰右舍
還沒有任何會員到訪.
 
 
 
 
 
The images, logos, trademarks used on this site and all forwarded content are the property of their respective owners.
We are not responsible for comments posted by our visitors, as they are the property of the poster.
All other content of this website is copyrighted by 加西網

Private Policy | moonlake oblog skin

加西網為北美中文網傳媒集團旗下網站