0

応答テキストを取得するために Webclient を使用しています。

  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");

ただし、ログインしていても、応答はログインページです。

どうすればこれを修正できますか?

4

0 に答える 0