Questions tagged [curl]

a command-line tool for transferring data using various protocols.

Filter by
Sorted by
Tagged with
69
votes
2answers
443k views

The program 'curl' is currently not installed

I am trying out Meteor http://meteor.com/examples/leaderboard I have to use CURL, which I am familiar with on Windows. Now I try to install it on Ubuntu 12.04. But i get these errors: kevin@ubuntu:...
60
votes
1answer
160k views

Installing curl.h library [duplicate]

Could you help me install curl.h library?
44
votes
2answers
75k views

Cannot find curl-config in Ubuntu 13.04

I am installing package RCurl in R and getting an error checking for curl-config... no Cannot find curl-config ERROR: configuration failed for package ‘RCurl’ I have tried to install libcurl ...
39
votes
3answers
30k views

curl is not working on Ubuntu 18.04 LTS

I can't fetch content from the web using curl. I tried to intall it the out put below. Some packages could not be installed. This may mean that you have requested an impossible situation or if ...
38
votes
4answers
27k views

What is the difference between curl and wget? [closed]

Both of these curl and wget are use for downloading files, etc. Is there any reason to use one over the other?
34
votes
8answers
100k views

Download ZIP file with curl command

How can I download ZIP file with curl command? I tried curl -sO, but error occurred. I want to download zip file from address: http://github.com/ziyaddin/xampp/archive/master.zip but can't. What must ...
33
votes
6answers
95k views

How to verify the SSL fingerprint by command line? (wget, curl, …)

Using a command line website downloader, such as wget, curl or any other one... In a script... I have the SHA-1 and the SHA-256 certficate fingerprint of a website. Due to security concerns (1) (2), ...
26
votes
2answers
5k views

How to determine the HTTP status without downloading the complete page?

I want to know the HTTP Status of the websites using Ubuntu. I have used curl and wget command for that purpose. But the problem is these commands download the complete website page and then search ...
18
votes
1answer
18k views

How do I install curl with http2 support

It seems like curl packed with ubuntu 16.04 does not have http2 support. How do I enable http2 in curl
18
votes
8answers
62k views

How to build curl with the latest openssl?

So I build openssl ./config make sudo make install sudo ln -sf /usr/local/ssl/bin/openssl `which openssl` I build curl ./configure --with-ssl make make install OpenSSL looks installed correctly: ...
15
votes
4answers
21k views

How to enable SFTP Support in cURL?

I have installed curl-7.27.0 and it is working fine. However, when I run curl -V, I get: curl 7.21.6 (i686-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3 Protocols: ...
14
votes
3answers
26k views

I can't add PPA repository behind the proxy

I'm trying to add the ppa repository (as a root) with the following command: export HTTP_PROXY="http://firstname.surname@xxx.com:my_pass@165.x.x.232:8080" add-apt-repository ppa:nilarimogard/webupd8 ...
14
votes
2answers
78k views

Protocol “https” not supported or disabled in libcurl [closed]

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 ...
13
votes
3answers
3k views

How can I gradually encrypt a file that is being downloaded?

I used to download files and then use openssl to encrypt them, which is not enough for me. How can I encrypt the download gradually as the file is being downloaded? I thought about using curl and an ...
13
votes
2answers
12k views

curl .gz file and pipe it for decompression

I am trying to download some .gz files (N.B. not .tar.gz ones) from given URLs and decompress them to overwrite existing files, if any. For each individual download, I tried the following: curl -O $...
13
votes
4answers
38k views

How to fix CA cert issues with Curl in Ubuntu 14.04?

I am using Ubuntu 14.04. When I use curl, I get the following error: curl: (77) error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: From what I gather from ...
12
votes
2answers
19k views

/etc/pki/tls/certs/ca-bundle.crt not found

I am using curl -L https://get.rvm.io | bash -s stable to install RVM. I get an error saying CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none I searched a bit on the Internet and found that ...
11
votes
1answer
56k views

How to make Curl and PHP available when installed from Xampp

I have installed a recent copy of XAMPP on Ubuntu 14.04. However, when I issue this command: curl -sS https://getcomposer.org/installer | php I get the following error messages: The program 'curl' ...
11
votes
2answers
7k views

What is the difference between libcurl3 and libcurl4

I was setting up an Ubuntu 14.04 development environment and went to install libcurl but noticed that there are two different version in my aptitude caches. What are the main differences between the ...
11
votes
3answers
10k views

Unable to install R packages in Ubuntu 18.04

Issue Unable to install a few R packages (statistical programming language) since updating from 16.04 to Ubuntu 18.04. The problem is related to the use of the shared library libcurl. More precisely:...
10
votes
2answers
3k views

pipe to sudo -E bash -

I was wondering what is the purpose of piping the downloaded file by curl into sudo -E bash - in the following shell: curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
10
votes
3answers
1k views

How do I create a CLI Web Spider that uses keywords and filters content?

I want to find my articles within the deprecated (obsolete) literature forum e-bane.net. Some of the forum modules are disabled, and I can't get a list of articles by their author. Also the site is ...
10
votes
2answers
30k views

curl: (1) Protocol https not supported or disabled in libcurl

I'm trying to install a framework using curl but I keep getting this annoying error message curl: (1) Protocol https not supported or disabled in libcurl. Does any one know how to fix this? I'm stack! ...
9
votes
3answers
20k views

Unable to update Node JS - keeps returning to old version [Ubuntu 15.04]

I'm unable to update nodejs, and I can't see why. If I were to make a guess, I'd say that I have two repositories listed in apt-get, that both contain a nodejs package. Here's what I've done: ...
9
votes
1answer
9k views

OpenSSL not picking up CAs in certs folder

We're having trouble with curl not connecting to an HTTPS server: $ curl https://the-problem-site.com (not the real URL!) curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(...
8
votes
4answers
30k views

How to set variable in the curl command in bash?

I have a bash file: #!/bin/bash # yesnobox.sh - An inputbox demon shell script OUTPUT="/tmp/input.txt" # create empty file >$OUTPUT # cleanup - add a trap that will remove $OUTPUT # if any of ...
8
votes
2answers
20k views

send base64 encoded image using curl

I am trying to send a base64 encoded image from the command line using curl and base64 like this: curl -X POST -H "Content-Type: application/json" -d '{"image" : $( base64 ~/Pictures/1.jpg )}' http:...
8
votes
2answers
2k views

What does “echo ipv4 >> ~/.curlrc” do?

I was facing some issue today when trying to install composer with the below command: curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer It was ...
8
votes
3answers
83k views

Install cURL library to satisfy dependency for R on Ubuntu 12.04

I am trying to install curl library. It is a dependency for the RCurl package in R. So I must install it for R to work properly. I tried: $ sudo apt-get install libcurl4-opensll-dev Reading package ...
8
votes
2answers
3k views

How to submit a file to paste.ubuntu.com without graphical interface?

My GUI does not work. I can only see a text terminal. I would like to send my logs to paste.ubuntu.com but I don't know how. Without a graphical interface, I am lost. Is there any way to submit a ...
7
votes
3answers
51k views

Bash script — store `curl` output in variable, then format against string in variable

I was hoping to curl data into a shell script variable, then use cat or awk to operate on that variable as if it was a file. Is this possible, or is there a workaround? Do I have to save the curl ...
7
votes
1answer
160 views

Terminal speaking in tongues after curl command

I'm using Ubuntu 16.04.3 through the Oracle VirtualBox. I'm trying to install a Python environment Anaconda through the Terminal. Following the instructions on How To Install the Anaconda Python ...
7
votes
2answers
10k views

12.04.4 server can't verify common SSL certificates, usual fixes failing

The Problem I've got one server in a farm which is suddenly unable to correctly handle SSL certificates. Attempting to do a curl command like curl -v https://google.com results in: curl -v https://...
7
votes
0answers
8k views

cURL sftp not supported or disabled in libcurl [duplicate]

I am trying to use sftp with cURL to upload files to my webserver, if I run curl -V on my server I get this output curl 7.47.0 (i686-pc-linux-gnu) libcurl/7.47.0 zlib/1.2.8 libssh2/1.8.0 Protocols: ...
6
votes
2answers
17k views

bash script to check website content by curl command

I want to write a script to check out if the website is working fine by checking out some of it is contents. If the content exists in the result, it prints a message telling the website is working ...
6
votes
2answers
42k views

bash script to login to webpage

I am trying to login into this page but I cannot for the life of me get it to work. I have to login to this site when i connect to my school's wifi in order to start a session. So far ive tried to ...
6
votes
1answer
4k views

Get the size of a remote file from terminal

I want to download a file from a server, but before doing so I would like to know the actual file size. I know that wget will display the filesize when the download is started, but this actually ...
6
votes
1answer
13k views

16.04 - curl: (35) gnutls_handshake() failed: Error in the pull function

When trying to connect to a HTTPS websites, I get this error curl: (35) gnutls_handshake() failed: Error in the pull function.. In detail: curl -vvv "https://example.tld" * Rebuilt URL to: https://...
5
votes
3answers
2k views

how does adding a ppa with a curl command work?

This link discusses different ways to install nodejs and npm. One of the methods was installing it via ppa. curl -sL https://deb.nodesource.com/setup | sudo bash - He used the above command to add ...
5
votes
2answers
15k views

how to install curl 13.04 with depency error

how to install curl in ubuntu 13.04? it always throw this error : Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable ...
5
votes
2answers
36k views

curl: (5) Couldn't resolve proxy 'hproxy.iitm.ac.in'

I have been using the proxy hproxy.iitm.ac.in. I've moved out now and want to change config to no proxy. On using: curl -L https://get.rvm.io | bash -s stable --ruby --autolibs=enable --auto-dotfiles ...
5
votes
2answers
19k views

Ubuntu 12.10 cURL with proxy

I´m using proxy and don´t have problems with anything except cURL. Anytime i try to do: curl -L http://link.to.something i receive: curl: (5) Couldn't resolve proxy 'http' Nevertheless: curl --...
5
votes
1answer
3k views

How to build the latest curl from sources to allow downloading files via sftp?

I need to download files from a sftp server. Unfortunately, the curl version in Ubuntu 7.58.0-2ubuntu3.6 amd64 does not support sftp. I get the error message Protocol "sftp" not supported or ...
5
votes
1answer
9k views

Ubuntu 16.04 openssl s_client write:errno=104

I'm getting the following error when trying to connect to github.com, google.com, dropbox.com via https, but stackoverflow.com, askubuntu.com and the majority of https websites work. Relevant details:...
4
votes
1answer
3k views

What is curl used for in Ruby?

I am a fairly new used and was looking for a way to install Ruby on my laptop and came across this link: https://rvm.io/rvm/install/ When I use the command specified there, it says curl is not ...
4
votes
2answers
10k views

How does curl print to terminal while piping

When I curl a file, and pipe it to a file or another command, I see output in my terminal. I am not sure how this happens, as the pipe is supposed to take all the output from curl, right? For example:...
4
votes
2answers
36k views

wget to download a link.php

I am having trouble finding a way to use wget to download a file from a link that uses php to point to the download. For example, if I want to write a script to download... say superantispyware ...
4
votes
2answers
907 views

The GUI browsers (such as FIrefox) can open a URL but curl timesout

The problem showed itself when I executed apt-get update and it failed when trying to update gitlab-ce repository with following error (although it just did work about a month ago): W: Failed to ...
4
votes
1answer
36k views

curl --resolve option not working: “Hostname was NOT found in DNS cache”

I am attempting to use curl's --resolve option to connect to the specified IP address when performing the HTTP request, but curl keeps reverting back to the IP address as retrieved by my local DNS ...
4
votes
1answer
4k views

Make curl parallel requests faster

I need to test the response code of 1 Billion (yes with a "B") pages. I am perfectly aware that no matter how I twist it, it will take many days to do. I have time. However, my current script seems ...