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

-c or --cookie-jar doesn't accept some cookie names #2564

Closed
anshnd opened this issue May 12, 2018 · 1 comment
Closed

-c or --cookie-jar doesn't accept some cookie names #2564

anshnd opened this issue May 12, 2018 · 1 comment
Labels

Comments

@anshnd
Copy link

anshnd commented May 12, 2018

I did this

curl -v --cookie-jar cookies.txt https://httpbin.org/cookies/set?domain=value

I expected the following

cookies.txt to be created and contain
httpbin.org FALSE / TRUE 0 domain value

Instead I got

* skipped cookie with bad tailmatch domain: value
and no cookies.txt file. It seems curl is wrongly applying attribute semantics to the cookie's name. Note that https://tools.ietf.org/html/rfc6265#section-4.2.1 sets no restrictions on cookie-name

curl/libcurl version

libcurl/7.53.1

[curl -V output]
curl 7.53.1 (x86_64-redhat-linux-gnu) libcurl/7.53.1 NSS/3.35 zlib/1.2.11 libidn2/2.0.4 libpsl/0.18.0 (+libidn2/2.0.3) libssh2/1.8.0 nghttp2/1.21.1
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy Metalink PSL

operating system

tested on Mac and Linux

@anshnd anshnd changed the title --cookiejar doesn't accept some cookie names -c or --cookie-jar doesn't accept some cookie names May 12, 2018
@monnerat
Copy link
Contributor

Thanks for your report: the problem is confirmed.
I'm currently working for a fix: will be available soon in master.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 11, 2018
@bagder bagder added the cookies label Nov 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

3 participants