When I try curl http://google.com
it works however when I do it with https, it gives this error:
curl: (1) Protocol "https" not supported or disabled in libcurl
I've searched for various answers but none explains how to fix it?
Please install curl
with SSL
Download:
Installing with SSL:
Unzip -> open terminal inside the directory PATH and type:
./configure --with-ssl
make
sudo make install
You can also specify the path to SSL installation, see ./configure --help
for details
libssl-dev
installed if you want SSL support. sudo apt install libssl-dev
– Ali Yousuf
Aug 09 '17 at 07:44
A quick google found this curl FAQ on troubleshooting this problem.
But I actually would suggest to delete your current manual install of curl, and just install it with sudo apt-get install curl
. The default Ubuntu install has the right libraries for https (and many more).
curl --version | grep Protocols
.... Helpful as well if you could give the exact curl command that is failing? – andrew.46 Sep 07 '16 at 06:49which curl
andapt-cache policy curl
would provide some helpful insight too. – David Foerster Sep 07 '16 at 09:23