var webRootUrl = "http://xxxx.com"; string pathPositionReal = webRootUrl + "/api/a/b"; var hander = new HttpClientHandler { UseCookies = true }; var cookie = System.Web.HttpContext.Current.Request.Headers["Cookie"]; // 示例代码的场景是当前应用请当前应用的另外一个接口 hander.CookieContainer.SetCookies(new Uri(webRootUrl), cookie); //<---灵魂所在 HttpClient client = new HttpClient(hander); var res = client.GetAsync(pathPositionReal); var body = res.Result.Content.ReadAsStringAsync().Result;