|
|
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(address); HttpWebResponse res = (HttpWebResponse)req.GetResponse(); Stream stream = res.GetResponseStream();
Match match = Regex.Match(html, "<img(.*?)src\\s*=\\s*(?:\"(?<1>[^\"]*)\"|(?<1>\\S+))"); while (match.Success) { imgSrc = match.Groups[1].Value; match = match.NextMatch(); }
Response.OutputStream.Write(buffer, 0, len);