Is in the Chrome F12 can see JSESSIONID, why c # can't read it, a great god, please give a read the JSESSIONID, HTTPONLY code
CodePudding user response:
TaskRes=client. PostAsync (url, content);
If (res) Result) StatusCode==System.Net.HttpStatusCode.OK)
{
Var temp=res. Result. Headers. GetValues (" Set - cookies ");
If (string. Join (";" , temp.) the Contains (" JSESSIONID "))
DataCenter. Default. CookieList=temp. ToList ();
String STR=res. Result. Content. ReadAsStringAsync (). The Result;
return str;
}