Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl overrides cookies having the same names with different cases. #15492

Closed
delogicsreal opened this issue Nov 6, 2024 · 1 comment
Closed
Assignees
Labels

Comments

@delogicsreal
Copy link

I did this

Store cookie from the website --
curl --cookie-jar /tmp/wbla_cookie.txt https://arla.neva.gov.in/ > /dev/null
Note the cookie ASP.NET_SessionId
Fetch another resource from the same website and the same cookie jar --
curl --cookie-jar /tmp/wbla_cookie.txt --cookie /tmp/wbla_cookie.txt https://arla.neva.gov.in/2024/css/bootstrap.min.css
The cookie ASP.NET_SessionId is replaced by ASP.NET_SessionID

I expected the following

The cookie jar file must have both ASP.NET_SessionId and ASP.NET_SessionID cookie as seen in popular browsers like Firefox and Chromium. Curl must also send both the cookies

curl/libcurl version

curl 8.9.1-r1 and 7.88.1

operating system

Gentoo and Debian 12.7

@bagder bagder added the cookies label Nov 6, 2024
@bagder bagder self-assigned this Nov 6, 2024
bagder added a commit that referenced this issue Nov 6, 2024
Extend test 31 to verify

Reported-by: delogicsreal on github
Fixes #15492
Closes #
@bagder bagder closed this as completed in 9919149 Nov 6, 2024
@delogicsreal
Copy link
Author

Damn that was quick. Thanks so much!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants