Questions tagged [curl]

cURL is an HTTP client library and command line tool.

646 questions
5
votes
2 answers

Curl with custom certificate

I 'd like curl to work with sites signed by goDaddy: If I call curl mypage.com/bla I am getting a certificate verification error. I tried getting the ca certificate with this snippet: echo | openssl s_client -connect mysite.com:443 2>&1 | sed -ne…
ProfHase85
  • 501
  • 3
  • 6
  • 15
5
votes
2 answers

Why did git stop working after server disabled SSLv3?

Like most others, our repository server needs to disable SSLv3 (and v2) ASAP. However, doing so seems to break our git-clients -- at least, on RHEL5 (connections from my FreeBSD desktop work fine). Even the most recent git (2.1.2) fails, and…
Mikhail T.
  • 2,338
  • 1
  • 24
  • 55
5
votes
2 answers

cUrl for an HTTPS address/domain times out unless previously accessed from browser

I've lost a couple days to this problem and hope it sparks a thought from someone. I am integrating several systems together using Powershell scripts. One of the two services I am connecting to (hosted JIRA) can be accessed just fine from my local…
Tarwn
  • 151
  • 1
  • 4
5
votes
1 answer

curl and wget attempting an ipv6 connection

On my dedicated server (hosted by OVH), that is running a fresh install of Ubuntu 14.04, curl and wget take approximately 10 seconds to complete a simple request. $ curl -v google.com * Rebuilt URL to: google.com/ * Hostname was NOT found in DNS…
Daniel S
  • 415
  • 2
  • 5
  • 9
5
votes
1 answer

SSL verification error with git (on github) on Ubuntu 14.04

I'm trying to clone the atom repository that just went fully open-source and I've run into some trouble. Attempting to git clone the repository is producing an SSL error: wug@wugputer:/src/test$ git clone https://github.com/atom/atom.git Cloning…
Wug
  • 151
  • 1
  • 5
5
votes
3 answers

Why are DNS lookups not respecting /etc/nsswitch.conf & /etc/host.conf?

I have an issue where hostnames are being looked up from DNS even though they are present in /etc/hosts. I have the following configured: /etc/host.conf: order hosts,bind /etc/nsswitch.conf: hosts: files dns /etc/resolv.conf: nameserver…
Damon Snyder
  • 191
  • 1
  • 2
  • 6
5
votes
5 answers

Executing script remotely with "curl | bash" feedback

I'm working on a platform that uses a lot such commands: ssh login@server.com 'curl http://some_server/script.sh | bash' This is really clean and handy to execute scripts remotely, however, I don't see anyway to get the output/exit code of the…
rmonjo
  • 231
  • 2
  • 4
  • 12
5
votes
2 answers

NTLM with cURL returns 401

Goal: connecting to an Exchange server (EWS) Method: cURL Problem: Cannot get authenticated (NTLM), request returns 401.1 There seems to be an old, well documented 2 issue that started with cURL's move from OpenSSL to NSS. I read that the…
Nanne
  • 612
  • 2
  • 8
  • 26
5
votes
2 answers

Ubuntu 11.10, using wget/curl fails with ssl

On a completely new install of Ubuntu I'm getting the following errors when using wget: wget https://test.sagepay.com --2012-03-27 12:55:12-- https://test.sagepay.com/ Resolving test.sagepay.com... 195.170.169.8 Connecting to…
Greg Spiers
  • 111
  • 1
  • 1
  • 7
5
votes
3 answers

curl --ftp-ssl to grab all files in remote directory

Is it possible to get all files in a directory using curl? Here's my string so far: curl --ftp-ssl -k ftp://user:pass@IP This will LIST the files in the user FTP directory, how do I adjust this string to get (RETR) all files in the remote…
orbitron
  • 391
  • 1
  • 2
  • 6
5
votes
5 answers

Multithreaded downloading with shell script

Let's say I have a file with lots of URLs and I want to download them in parallel using arbitrary number of processes. How can I do it with bash?
synapse
  • 499
  • 2
  • 6
  • 14
5
votes
1 answer

Upgrading command line tools to support TLS1.3 on Amazon Linux 2

A server I need to communicate with only allows TLS1.3 traffic. I have thus updated the version of OpenSSL bundled with Amazon Linux 2 to OpenSSL 1.1.1c. Following this guide I am now able to use TLS 1.3 using OpenSSL e.g. openssl s_client -connect…
Anon957
  • 151
  • 1
  • 3
5
votes
1 answer

nginx does not respond correctly to HTTP/1.1

I'm having an issue where certain clients that first try to connect via HTTP/1.1 are not correctly getting forwarded to HTTPS curl -v http://indentationerror.com/ * Trying 217.45.175.173:80... * Connected to indentationerror.com (217.45.175.173)…
Alex Baldwin
  • 311
  • 2
  • 9
4
votes
2 answers

Determine which TLS version is used by default (cURL)

I have 2 servers that both run curl 7.29.0 and CentOS 7. However, when I run the following command I get 2 different results: curl https://tlstest.paypal.com PayPal_Connection_OK ERROR! Connection is using TLS version lesser than 1.2. Please use…
Craig
  • 165
  • 1
  • 1
  • 7
4
votes
1 answer

curl gnutls_handshake failed: Error in the pull function

We run a curl command regularly, and suddenly last night it started giving us errors. The error is this: curl: (35) gnutls_handshake() failed: Error in the pull function. Our server is Ubuntu 16.04.3 with all the upgrades and a fresh reboot. The…
Magmatic
  • 179
  • 2
  • 2
  • 8