HttpWebResponse 的问题


还是前天的那个 encoding的问题。今天坐车的时候我突然想到,HttpWebResponse的对象应该有保存了Encoding相关的信息,回来一查 HttpWebResponse 对象的 ContentEncoding Property似乎与此有关,msdn上这样说:

Gets the method used to encode the body of the response.

public string ContentEncoding {get;}

Property Value

A string describing the method used to encode the body of the response.

Remarks

The ContentEncoding property contains the value of the Content-Encoding header returned with the response.


然而,我试了几个网站,这个属性都返回空字符串,这是怎么回事呀?

转载于:https://www.cnblogs.com/Hush/archive/2004/03/18/3539.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值