WebRequest request = WebRequest.Create(url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
if (response.ContentType.StartsWith("text/html", true, CultureInfo.CurrentCulture))
{
//Html page
}
No comments:
Post a Comment