Questions tagged [curl]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

wget or curl gives 403:Forbidden while downloading file from OneDrive for business

I'm trying to download software for a client which resides in my bussiness OneDrive account. Through the webinterface of OneDrive I do: Right click the file and select Share List item Change the ...
0
votes
0answers
17 views

Encountering issues when trying to install Curl

I'm running an Ubuntu 18.04 server with PHP 7.3.9. I'm trying to install Curl on my server, primarily so that sites can communicate with Mailchimp. Doing so gives this error: Building dependency ...
0
votes
0answers
25 views

create email alert at output of Curl command

can you please help me here with idea how can I generate email alert when the curl command doesn't run successfully and generate error. like below. curl -i --header "Content-Type: application/json" ...
1
vote
1answer
9k views

curl: (7) Failed to connect to 127.0.0.1 port 5000: Connection refused when using Flask

I am following the Udacity course here: https://classroom.udacity.com/courses/ud388/lessons/4628431284/concepts/53174719510923 I am trying to run their python program using Flask. I started vagrant ...
1
vote
1answer
7k views

Keep getting error “Call to undefined function curl_init()”

I'm using PHP 5.6. I've already installed curl using the following commands: sudo apt-get install php-curl sudo apt-get install php5-curl But even still, I keep getting the error: Call to ...
0
votes
1answer
5k views

Can not connect via FTP over explicit TLS/SSL

I have been rather desperate trying to connect via FTP over explicit TLS/SSL. I am following this manual: http://repeatexplorer.umbr.cas.cz/static/html/help/manual.html#using-ftp Here is what I ...
0
votes
0answers
61 views

OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to storage.googleapis.com:443

I've been trying to install minikube on my Ubuntu machine as per this post. But whenever I try to run... curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-...
0
votes
0answers
22 views

Curl http2 support does not install any more

I didn't have problems with installing curl http2 support before. I used this code: apt-get update sudo apt-get install build-essential nghttp2 libnghttp2-dev libssl-dev wget https://curl.haxx.se/...
1
vote
1answer
4k views

curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version /home/mohan/mesg

When I am running the following command: bash <(curl -fsSL https://mesg.com/install) , I am getting this error: curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol ...
60
votes
1answer
160k views

Installing curl.h library [duplicate]

Could you help me install curl.h library?
1
vote
1answer
4k views

Unable to locate package brave-browser on Ubuntu 18.04.1 LTS (lubuntu)

Trying to install the Brave web browser, I ultimately arrive at the error, "Unable to locate package brave-browser". How should I proceed? Here is my LXTerminal output: username@username-Latitude-...
1
vote
1answer
30 views

How to get curl verbose output without the TLS negotiation?

Is there a curl option producing everything like -v except for the TLS negotiation? I need both the input and output headers, but don't care about TLS as I know it works.
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://...
0
votes
0answers
54 views

wget & curl are unable to download but aria2c is able? why?

I'm trying to retrieve the content-length of a file by using below commands, they are all OK, but for this file which belongs to an online store in Iran: https://www.digikala.com/mag/wp-content/...
1
vote
0answers
421 views

Local cURL Not Working on www Subdomain, Ubuntu 18.04, GCE

I have a VPS on GCE running WordPress and Nginx under Ubuntu 18.04. When I $ curl -v majlovesreg.one it returns okay. But when I add www, $ curl -v www.majlovesreg.one within the server it throws ...
0
votes
3answers
182 views

difference between installation options for NodeJS on Ubuntu 18.04 LTS

I'm a brand new to Linux so this may be a rookie question... On a new installation of Ubuntu 18.04 LTS I want to install NodeJS. I ran node --version to verify that it is not installed: Command '...
0
votes
0answers
120 views

Sending base64 encoded images using curl

I'm trying to send data and an image that is base64 encoded in a curl command, and I need to know how to do that. It's not a multi-part form. It's just a simple base64 encoded picture or PDF as a form ...
0
votes
0answers
17 views

error message when I use the curl command [duplicate]

when I use the curl command, I get: E: Malformed entry 1 in list file /etc/apt/sources.list.d/iridium-browser.list (Component) E: The list of sources could not be read. E: Malformed entry 1 in list ...
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 ...
0
votes
2answers
410 views

Can't use ftp to transfer a file - permission denied

I'm using Ubuntu and I would like to have a script that once a day transfer my mysql database from my local hard drive to my ftp server (provider is Aruba). I'm correctly able to connect via FTP and ...
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: ...
1
vote
1answer
101 views

Error executing command during installation of Node.js and npm on Ubuntu 19.04

I have been trying to install Node.js and the related package npm on my Ubuntu 19.04. I have: v10.15.2 for Node.js and 5.8.0' fornpm`. I know from this source that the default version of npm for Node ...
0
votes
1answer
112 views

curl in bash script adds ? at end of the file name

I'm on Ubuntu 16.04, and I have a bash script with a curl command, for example: #!/bin/bash curl https://www.example.com/file.txt > ./file.txt The file should be downloaded with the name file.txt ...
1
vote
0answers
44 views

Curl, git, other commands hang while trying to download file

Currently on Ubuntu 18.04.12, when I try to download something from the terminal, or push to git or any similar command it always hangs on the download either indefinitely or for a very long time. ...
0
votes
0answers
60 views

Download with curl

I am trying to download the .mat files from the pages below with the following script: !for url in `curl -s csegroups.case.edu/bearingdatacenter/pages/12k-drive-end-bearing-fault-data |grep mat |grep ...
1
vote
1answer
77 views

How do I install curl with http3 support

It seems like curl packed with ubuntu does not have http3 support. How do I enable http3 in curl?
1
vote
1answer
110 views

How do I change the “Last-Modified” time format from the curl-head standard output?

The following command can get the modification time of the remote file, how to modify the output time format? # curl -sI https://sgp-ping.vultr.com/vultr.com.100MB.bin | grep Last-Modified | cut -c16-...
1
vote
1answer
3k views

How can I install both curl (depending on libcurl4) and mongodb (depending on libcurl3)?

On Lubuntu 18.04, I have installed mongodb, by following https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/#install-mongodb-community-edition sudo apt install -y mongodb-org mongodb-...
0
votes
2answers
4k views

How to upgrade/install newest version of nodejs on Ubuntu 14.04

I have been working an hour for this. Taken from their official documentation : curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get install -y nodejs However, its never ...
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 ...
0
votes
0answers
22 views

not sure about proxy is working or not

I have recently configured proxy setting in ubuntu. but i have a doubt that it is not working as per expectation. 1-when i execute the command sudo apt-get update it shows enter image description ...
-3
votes
1answer
511 views

curl: (7) Failed to connect to 127.0.0.1 port 51786: Connection refused

When i running : curl -sS https://getcomposer.org/installer -o composer-setup.ph i get the error. I already reinstall and purge and install curl. my Apache server is running as well.
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! ...
0
votes
1answer
322 views

PHP curl extension not enabling

I'm using the ondrej/php PPA and have been for a while with no issues but I recently upgraded to PHP 7.3 and I've hit a snag. I uninstalled all reference of the previous version and installed 7.3 and ...
1
vote
1answer
1k views

SSL certificate error with curl

Reciently I started to having trouble using curl with SSL (it gives cert error). Packages are up to date. Tried doing "update-ca-certificates --fresh" without success. # curl https://github.com/ curl:...
2
votes
2answers
5k views

“curl : Depends: libcurl4 (= 7.61.0-1ubuntu2.2) but it is not going to be installed” on Ubuntu 18.10 with PHP 7.2.10

I am struggling with installing cURL module in Ubuntu 18.10. While upgrading from 17.10 to 18.10 cURL was removed/deleted. Now when I try to execute the command sudo apt-get install php7.2-curl I ...
0
votes
0answers
139 views

Problem access to google.com with curl in fresh install

I've installed a fresh system with using boot PXE and preseed. The installation works perfectly. But, when we tried to access https://www.google.com with curl or wget, we getting an error : # curl ...
0
votes
1answer
619 views

How to upload a file using terminal

I am trying to use curl command to upload a text file to my cloud. I have the upload link where I want to upload the file. The command curl --upload-file path/of/file/here https://upload.address.here ...
1
vote
1answer
1k views

Installing curl on Ubuntu 18.04 uninstall libcurl3

Trying to install curl on my Ubuntu 18.04 requires me to remove some stuff that other software in my system needs to run. To be able to install curl from apt install curl I had to do this: aptitude ...
1
vote
3answers
16k views

How do I send GET and POST requests using Curl?

How do I send GET and POST requests with parameter gimmeflag and value please to the URL http://103.200.7.150:7777/ using curl on the command line?
0
votes
1answer
234 views

XML output from HTTP request from Terminal

I am sending an HTTP request using curl from Terminal and would like to see or save the output (which by default comes in xml). Here is the code I am using: curl https://catalogue.onda-dias.eu/dias-...
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 ...
3
votes
1answer
514 views

SSL Issue on curl by compiling PHP7

While compiling PHP7 with curl I got this message in my log: /php-src/ext/curl/interface.c:74:5: warning: #warning "libcurl was compiled with SSL support, but configure could not determine which" "...
0
votes
2answers
481 views

Cannot Unzip a .tar.gz file

So, I am trying to install apache tomcat, upon me trying to unzip the tar file i am getting this error. gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: ...
3
votes
2answers
7k views

Unmet dependencies when trying to install curl on Ubuntu 16.04

When trying to install curl on Ubuntu 16.04, it gives me the following error message: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are ...
0
votes
0answers
38 views

Can't install curl in ubuntu 19.04 [duplicate]

I just installed Ubuntu 19.04 and I am trying to install curl by terminal and it shows me this message: someuser@somepc:~$ sudo apt-get install curl Reading package lists... Done Building dependency ...
3
votes
1answer
1k views

How to send JSON as variable with bash curl?

I'm trying to send a POST request with curl, but I'd like to store the json data in a variable in order to resend it if an error occur. I used this code: jsonvariable="{"ora" : "value1", "temp" : "...
0
votes
2answers
2k views

CURL not working in the latest version of PHP 7.2!

I tried to install the CURL in my server but failed. My server is running in Ubuntu 18.04 LTS & PHP 7.2 version. I used the command to install the CURL in my server. The command I used: sudo ...
3
votes
1answer
89 views

bash, check string on website

Is it possible to grep a string on a URL, which is 301 Moved Permanently? For example on this URL: https://eshop.unihobby.cz/zahrada-zimni-sortiment-vanoce-vanocni-osvetleni-interierove-osvetleni-...
1
vote
3answers
3k views

download and pipe sql to psql

How can I do this in one step? Download backup command: curl http://s3.aws.com/backup.sql Restore backup command: sudo -u postgres psql <PIPE-THE-OUTPUT-OF-PREVIOUS-COMMAND>