首页 新闻 会员 周边

PHP开发XML源, 经过了GZIP,,用C#或者vb.net 怎么解压呢!?

0
悬赏园豆:20 [已关闭问题] 关闭于 2013-09-13 14:20

PHP开发XML源, 经过了GZIP,,用C#或者vb.net 怎么解压呢!?

未经过GZIP的XML

 

经过GZIP的XML

 

有代码可以参照一下吗!?

问题补充:

我问过PHP工程师,他说用

For PHP, You can include your XML with header
header('content-type: application/x-gzip');

or you can uncompress the XML after get the response 
string gzuncompress ( string $data [, int $length = 0 ] )

vb.net和C#
我参照了
http://www.cnblogs.com/clso/archive/2011/03/23/1992337.html

http://www.vbforums.com/showthread.php?587729-HttpWebRequest-and-GZip-Http-Responses

http://www.west-wind.com/weblog/posts/2007/Jun/29/HttpWebRequest-and-GZip-Http-Responses



GZipStream,,但是还是无法解压。。


Tom_Tan的主页 Tom_Tan | 初学一级 | 园豆:6
提问于:2012-12-07 18:59
< >
分享
所有回答(0)
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册