我的问题是我无法获取特定的网站 html 代码,我收到此错误:'System.Net.WebException:'远程服务器返回错误:(403)禁止。'
我的代码很简单:
using (WebClient client = new WebClient())
{
string htmlCode = client.DownloadString("http://isbnsearch.org/isbn/");
MessageBox.Show(htmlCode);
}
当我尝试使用像谷歌这样的其他网站时,一切都很完美,但是使用这个网站我无法访问它。
有什么解决方案可以解决这个问题吗?谢谢