Cookie authCookie = new Cookie();
var request = System.Net.WebRequest.Create(Constants.SignalrEndpointAddress) as HttpWebRequest;
request.Method = "Get";
request.ContentType = "application/x-www-form-urlencoded";
request.CookieContainer = new CookieContainer();
using (var response = await request.GetResponseAsync() as HttpWebResponse)
{
authCookie = response.Cookies[cookeName];//[FormsAuthentication.FormsCookieName];
}
return authCookie;
httpclient有没有办法使用防伪cookie?