Skip to content

libcurl failure with --disable-netrc #4302

@codesniffer13

Description

@codesniffer13

I did this

Built curl-7.65.3 from source and included (among other options) --disable-netrc. Tried to HTTP download from various public websites using the curl build (I ensured my PATH & LD_LIBRARY_PATH were setup to use only my build) but getting failures:

$ curl -o index2.html http://www.google.com
curl: (48) An unknown option was passed in to libcurl

curl -o index2.html https://www.google.com
curl: (48) An unknown option was passed in to libcurl

When I build with --enable-netrc then it works fine.

I expected the following

Successfully download webpages which do not require authentication.

curl/libcurl version

curl 7.65.3 (x86_64-pc-linux-gnu) libcurl/7.65.3 OpenSSL/1.0.2s zlib/1.2.11
Release-Date: 2019-07-19
Protocols: http https 
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL UnixSockets

operating system

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions