more details: http://www.cnblogs.com/yczz/archive/2012/06/01/2530484.html
在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 response);

2, 添加头字符串;

WebHeaderCollection headers = request.Headers;
headers.Add("Accept-Language: en-us;q=0.5,en;q=0.3");
