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,,但是还是无法解压。。