Friday, January 27, 2006
http request to another webpageSystem.Net.HttpWebResponse Rs; System.Net.HttpWebRequest Rq; Rq = (HttpWebRequest)WebRequest.Create(url); Rq.Method = "GET"; Rq.ContentType = "text/html"; Rq.Proxy.Credentials = CredentialCache.DefaultCredentials; Rq.Credentials = CredentialCache.DefaultCredentials; Rq.ServicePoint.ConnectionLimit = 25; Rs = (HttpWebResponse)Rq.GetResponse(); StreamReader sr= new StreamReader(Rs.GetResponseStream()); String html = sr.ReadToEnd(); |
About Me
LinksPrevious Posts
Archives |
0 Comments:
Post a Comment
<< Home