你能帮帮我吗?我正在尝试获取任何网页的内容。但 GetResponse 不断抛出未找到的异常页面。我感谢您的帮助。以下是我的代码。
try
{
System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.smallchiptechnologies.com/");
request.Method = "POST";
request.ContentType = "text/plain";
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
}
catch (WebException ex)
{
}