Questions tagged [curl]

cURL is an HTTP client library and command line tool.

646 questions
28
votes
2 answers

Curl: unable to get local issuer certificate. How to debug?

I’ve got an odd problem. Updated my LAMP dev machine (Debian) to PHP 7. Afterwards I cannot connect to a specific TLS encrypted API via Curl anymore. The SSL cert in question is signed by thawte. curl https://example.com gives me curl: (60) SSL…
Rob
  • 383
  • 1
  • 3
  • 6
24
votes
5 answers

Does CURL cache requests?

This is a pretty long question, so bear with me. I wanted to stress my Akamai Server logged in from an AWS instance. So, I started running ab benchmark. However, they seemed ridiculously fast to download ~3 MB video files. Naturally I wanted to see…
Akshaya Shanbhogue
  • 342
  • 1
  • 2
  • 6
23
votes
4 answers

Execute curl requests in parallel in bash

What is the best way to execute 5 curl requests in parallel from a bash script? I can't run them in serial for performance reasons.
Justin
  • 5,328
  • 19
  • 64
  • 84
22
votes
4 answers

Download urls listed in a file using curl?

I have a file that has all the urls from which I need to download. However I need to limit one download at a time. i.e. the next download should begin only once previous one is finished. Is this possible using curl? Or should I use anything else.
Dev
  • 321
  • 1
  • 2
  • 5
22
votes
3 answers

How do I use curl in a cron job?

I need to set up a cron job in cpanel that calls a URL (on the same server) once a week. I was going to use wget but it turns out this is disabled on the shared server being used. Is there an alternative to wget? I've heard that curl can be used but…
davidhyland
  • 335
  • 1
  • 2
  • 4
21
votes
1 answer

What is the difference between installing libcurl4-gnutls-dev or libcurl4-nss-dev in ubuntu 11.10?

For a software that I am installing in an ubuntu server, it needs the curl deb packages. When I try to install libcurl4-dev it says that this is a virtual package and I need to install libcurl4-gnutls-dev or libcurl4-nss-dev. What is the difference…
Pablo Marin-Garcia
  • 313
  • 1
  • 2
  • 7
19
votes
1 answer

"server certificate verification OK" but "ALPN, server did not agree to a protocol"

I am making a curl call curl -v ... https://... and the verbose output contains .... * ALPN, offering http/1.1 * SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256 * server certificate verification OK .... * ALPN, server did not agree…
Craig Hicks
  • 677
  • 1
  • 5
  • 13
19
votes
3 answers

how do I get curl to save a file to a specified directory?

I'm trying to get curl, using a script, to download a file and save it to a certain directory. I got it to download but I dont know how to get it to a certain directory from a script. It usually just saves it to the current working directory.
joe schmoe
19
votes
4 answers

Ubuntu 10.04/CURL: How do I fix/update the CA Bundle?

I recently upgraded our server from 8.04 to 10.04, and all the software along with it. From what I've found online, it seems that the new version of CURL doesn't include a CA bundle, and, as a result, fails to verify that the certificate of the…
Nick
  • 4,503
  • 29
  • 69
  • 97
16
votes
3 answers

how to trigger jenkins job via curl command remotely

I have tried to execute(trigger) jenkins job (not a parameterized job) via curl command by using below methods but it showing these results. my jenkins version is Jenkins 2.73.3 curl -X POST -u jenkins_user_name:jenkins_user_passwd…
Prabath Dolawatta
  • 519
  • 1
  • 5
  • 13
15
votes
1 answer

Disable SSL check rpm

When trying to run any rpm command I get the follow error. I am not sure why i am getting a curl error but i have tried many different options which have all failed. Running CentOS7 and behind a proxy [root@CentOS7]# rpm -Uvh…
Anthony Fornito
  • 9,546
  • 1
  • 34
  • 124
15
votes
4 answers

How can I capture output from LFTP? (Output not written to STDOUT or STDERR?)

I would like get access to progress information from lftp. Currently, I'm using curl like so: curl http://example.com/file -o file -L 2> download.log This writes curl's progress information to the download.log file, which I can tail to get…
jondahl
  • 153
  • 1
  • 1
  • 4
14
votes
1 answer

How do I pipe the output of uptime/df to curl?

I want to send the output of uptime and df commands to a web app using cURL. I tried: uptime | curl http://someurl.com -T - But that didn't seem to send the data. What is the proper way to send the output of a command to cURL as a POST parameter?…
Callmeed
  • 2,725
  • 4
  • 20
  • 15
13
votes
3 answers

curl fails to retrieve HTTPS content: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

I'm trying to access the website https://www.lawsociety.com.au with curl on Windows 10 and Ubuntu 16.04. It works on Ubuntu, but fails on Windows with the message error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure. I'm not…
Alex Blekhman
  • 233
  • 1
  • 2
  • 7
13
votes
2 answers

How to specify the SSL port with command line curl?

I'm trying to test the SSL connection on one of my servers. The server is behind a load balancer (LB) so it's listening for SSL connections on the port 8090. I have use the --resolve option to test when talking to the LB which listens on port…
Nicolas GUILLAUME
  • 291
  • 1
  • 4
  • 10
1
2
3
43 44