HttpWebResponse res = null; try { res = request.GetResponse() as HttpWebResponse; } catch (WebException ex) { res = (HttpWebResponse)ex.Response; //string html = new StreamReader(temp.GetResponseStream()).ReadToEnd(); //StreamReader sr = new StreamReader(res.GetResponseStream()); //string html = sr.ReadToEnd(); }
时间: 2024-11-08 15:09:35