Author: vickyngo | Posted on: 3/11/2010 10:53:25 PM | Views : 343

I wrote a function to get all contact in yahoo like that:

//http://address.yahoo.com/ string strAddressView = strAddressViewTemp; HttpWebRequest reqAddView = (HttpWebRequest)WebRequest.Create(strAddressView); reqAddView.KeepAlive = true; reqAddView.Method = Utility.Get; reqAddView.AllowAutoRedirect = false; reqAddView.UseDefaultCredentials = true; reqAddView.UserAgent = Utility.UserAgent; reqAddView.CookieContainer = new CookieContainer(); reqAddView.CookieContainer.Add(ccLogin); HttpWebResponse resAddView = (HttpWebResponse)reqAddView.GetResponse(); resAddView.Cookies = reqLogin.CookieContainer.GetCookies(reqAddView.RequestUri); StreamReader sr3 = new StreamReader(resAddView.GetResponseStream()); String strAddView = sr3.ReadToEnd(); sr3.Close(); ...

Go to the complete details ...