WebRequest.Create(url) as HttpWebRequest; HttpWebResponseresponse = request.GetResponse() as HttpWebResponse;
string status = Response.StatusCode.ToString
我正在尝试确定HtmlAgility.HtmlDocument的内容类型。有什么想法吗? HtmlWeb web = new HtmlWeb();
var hDocument = web.Load(/*string*/ url); 如果可能的话,我想知道如何找出hDocument的contentType,或者是否有任何解决方法。谢谢
HttpWebRequest request = WebRequest.Create(requestURI) as HttpWebRequest; using (var responseStream = new StreamReaderresponse.GetResponseStream())) text = responseStrea