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

Empty user-agent in config file is not allowed. #1152

absorber opened this issue Dec 2, 2016 · 1 comment

Empty user-agent in config file is not allowed. #1152

absorber opened this issue Dec 2, 2016 · 1 comment


Copy link

@absorber absorber commented Dec 2, 2016

I did this

echo 'user-agent = ""' | curl -K-

I expected the following

I expected curl to send the HTTP request without the user-agent string, like when invoking curl like this: curl --user-agent ""

curl/libcurl version

$  curl -V
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp 
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP 

operating system

Linux Mint 17.2 Rafaela x86_64

@bagder bagder added the cmdline tool label Dec 2, 2016
Copy link

@bagder bagder commented Dec 2, 2016

Thanks for reporting!

This problem was fixed in commit cee0fb3, to be shipped in the pending 7.52.0 release.

@bagder bagder closed this Dec 2, 2016
@lock lock bot locked as resolved and limited conversation to collaborators May 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.