it doesnt matter where you connecting or how you are connecting. as long as you are processing your requests on server side you can get the data and the content of any page passing correct parameters. for example we have written a code to content of the mails from live mail...
HttpWebRequest mailLive = (HttpWebRequest)WebRequest.Create(new Uri(uriString));
// create a Cookie Container
CookieContainer cookieContainer = new CookieContainer();
mailLive.CookieContainer = cookieContainer;
mailLive.AllowAutoRedirect = true;
mailLive.Headers.Add(HttpRequestHeader.AcceptEncoding, "gzip,deflate");
mailLive.Accept = "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*";
mailLive.Headers.Add(HttpRequestHeader.AcceptCharset, "iso-8859-1, utf-8, iso-10646-ucs-2;q=0.6");
mailLive.Headers.Add(HttpRequestHeader.AcceptLanguage, "en-us");
mailLive.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; InfoPath.2; MS-RTC LM 8; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; SPC 3.1 P1 Tc";
mailLive.Headers.Add(HttpRequestHeader.CacheControl, "no-cache");
mailLive.ContentType = "application/x-www-form-urlencoded";
mailLive.Method = "POST";
byte[] postBuffer = Encoding.GetEncoding("iso-8859-1").GetBytes(postData);
mailLive.ContentLength = postBuffer.Length;
mailLive.UnsafeAuthenticatedConnectionSharing = true; if you reach this point, you will need a stream reader to read and parse the rest of the content... hope this will give you some ideas. the code is written in C#.
this is just a part of the code. i cannot post complete source code here.
Enjoy
fatihpiristine
Posting Whiz in Training
283 posts since Sep 2007
Reputation Points: 6
Solved Threads: 19