Here's the code:
public static async Task<string> DownloadPageWithCookiesAsync(string url) { HttpClientHandler handler = new HttpClientHandler(); handler.UseDefaultCredentials = true; handler.AllowAutoRedirect = true; handler.UseCookies = true; handler.CookieContainer = new CookieContainer(); HttpClient client = new HttpClient(handler); HttpResponseMessage response = await client.GetAsync(url); response.EnsureSuccessStatusCode(); string responseBody = response.Content.ReadAsString(); return responseBody; } after the client.GetAsync(url); runs, the handler.CookieContainer contains 7 cookies. How can I access them?