我在
StreamReader stream = new StreamReader(request.GetResponse().GetResponseStream());
说远程服务器返回错误:
403 禁止
我正在传递http://www.snapdeal.com
URL。
StreamReader reader = objm.URLServerR(address);
public StreamReader URLServerR(string url)
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
StreamReader stream = new StreamReader(request.GetResponse().GetResponseStream());
return stream;
}