0

我在

StreamReader stream = new StreamReader(request.GetResponse().GetResponseStream());

说远程服务器返回错误:

403 禁止

我正在传递http://www.snapdeal.comURL。

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;
                }
4

0 回答 0