摘要:
在HttpWebRequest中,有一些header为限制级的,对于这些header,你不能直接来通过headers.Add方法来添加,比如Host、Connection、User-Agent、Referer、Range、Content-Type、Content-Length、Expect、Proxy-Connection、If-Modified-Since等header. 这些header都是通过属性来设置的 。添加的具体步骤如下1,测试是否能够为请求设置指定的 HTTP 标头;WebHeaderCollection.IsRestricted(string headerName, bool 阅读全文
posted @ 2012-06-01 11:54
花生!~~
阅读(18311)
评论(0)
推荐(0)
浙公网安备 33010602011771号