Skip to content

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

Closed

Description

@absorber

I did this

echo 'user-agent = ""' | curl -K- ipinfo.io

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 "" ipinfo.io

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

Activity

  1. bagder commented on Dec 2, 2016

    @bagder
    Member

    Thanks for reporting!

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

  2. locked as resolved and limited conversation to collaborators on May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions