Z
Zhelyo Hristov
I am trying to get windows live contact from a smartphone 2003 SE device
Compact Framework 1.1 , the following code works when run on many other
https sites i tested, but is not working for the live contacts database. The
code gives an System.Net.WebExceptionStatus.ReceiveFailure when trying to
get the response from server.
Can someone please help fixing the issue.... btw the code works perfectly on
Windows XP
TicketAcquirer t = new TicketAcquirer();
string ticket = t.GetTicket();
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create("https://cumulus.services.live.com/<LiveID>/LiveContacts");
request.Method = "GET";
request.AllowWriteStreamBuffering = true; //required for bug
workaround
request.Headers.Add("Authorization", "WLID1.0 t=\"" + ticket +
"\"");
HttpWebResponse response =
(HttpWebResponse)request.GetResponse(); -< Exception
StreamReader reader = new
StreamReader(response.GetResponseStream());
string result = reader.ReadToEnd();
response.Close();
Compact Framework 1.1 , the following code works when run on many other
https sites i tested, but is not working for the live contacts database. The
code gives an System.Net.WebExceptionStatus.ReceiveFailure when trying to
get the response from server.
Can someone please help fixing the issue.... btw the code works perfectly on
Windows XP
TicketAcquirer t = new TicketAcquirer();
string ticket = t.GetTicket();
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create("https://cumulus.services.live.com/<LiveID>/LiveContacts");
request.Method = "GET";
request.AllowWriteStreamBuffering = true; //required for bug
workaround
request.Headers.Add("Authorization", "WLID1.0 t=\"" + ticket +
"\"");
HttpWebResponse response =
(HttpWebResponse)request.GetResponse(); -< Exception
StreamReader reader = new
StreamReader(response.GetResponseStream());
string result = reader.ReadToEnd();
response.Close();