Welcome xfangfang as #curl commit author 1405: github.com/curl/curl/pull/1829…
cookie: remove expired cookies before listing by xfangfang · Pull Request #18299 · curl/curl
If the cookie returned by the server is expired, curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies) will still retrieve one expired cookie(Only the last one). Below is the test code: server...GitHub