I am using Webclient to get a response text:
String strPathAndQuery = HttpContext.Current.Request.Url.PathAndQuery;
String strUrl = HttpContext.Current.Request.Url.AbsoluteUri.Replace(strPathAndQuery, "/");
WebClient client = new WebClient();
myresponse = client.DownloadString(strUrl + "/handles/x.ashx");
However, even though I am logged in, the response is the login page.
How can I fix this?