Questions tagged [curl]

cURL is an HTTP client library and command line tool.

646 questions
8
votes
3 answers

Alternatives to CURL, WGET

Is anyone aware of any alternatives to curl and wget? The key functional requirement I'm looking for is to be able to execute an HTTPS GET request against a known URL. The reason I'm looking for an alternative is simply that I'm trying to execute a…
Paul Russell
  • 257
  • 1
  • 3
  • 7
7
votes
1 answer

Understanding the Difference Between DNS Resolvers

Intro In the attempt to debug a networking issue local to our intranet, it became apparent that curl host nslookup and dig behave differently. Where dig and host returns the IP address of the URL in question, curl and nslookup return: curl: (6)…
7
votes
1 answer

SSL certificate working in chrome but not openssl s_client or curl

Google chromes update to version 58 started invalidating my self signed certificates a few days ago. It was complaining about missing subjectAltNames. I did some research and tried a couple of suggestions (which wouldn't work) but then found this…
Jason Joslin
  • 191
  • 1
  • 7
7
votes
3 answers

Curl request wont resolve to localhost

I have an ubuntu server running apache on localhost / port 80. It's domain is sub.domain.com If I make a curl request to http://localhost on that machine it will error with 'couldnt connect to host' immediately. If I make a curl request to…
Ashley Smith
  • 73
  • 1
  • 1
  • 3
7
votes
3 answers

How can I download multiple files stored in a text file with curl and xargs?

How can I download multiple files stored in a text file with curl and xargs? This is my last trial: cat listfile.txt | xargs curl -O first file works well, but other files are just output to stdout.
Eonil
  • 10,459
  • 16
  • 36
  • 54
6
votes
2 answers

Https connection, TLS hangs and eventually fails SSL_ERROR_SYSCALL

I'm trying to correctly diagnose an issue where the server i have access to doesn't seem to be able to contact another server on the internet over port 443: ~$ curl https://mydomain.co.uk -vvv * Rebuilt URL to: https://mydomain.co.uk/ * Trying…
Ankur22
  • 111
  • 1
  • 2
  • 8
6
votes
1 answer

cURL and Azure BLOB with SAS - HTTP header that's mandatory for this request is not specified

I've reviewed the information at: https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob https://docs.microsoft.com/en-us/rest/api/storageservices/service-sas-examples As far as I can tell I am complying becuase I am posting the SAS in…
Little Code
  • 199
  • 1
  • 2
  • 10
6
votes
1 answer

How to use rootcert.pem certificate with curl?

I have a file/certificate in next format rootcert.pem. How to use this certificate with curl ?
Bdfy
  • 181
  • 1
  • 1
  • 3
6
votes
1 answer

DNS issues on Google compute engine

I'm experiencing some interesting network issues, which I can reproduce and work around, although not explain - therefore I ask you! :) I have a setup with two servers, both located in Google's network: Server A (Google App Engine): a public-facing…
sqren
  • 249
  • 1
  • 13
6
votes
2 answers

Why is my new Ubuntu 12.04 unable to verify a Verisign ssl certificate?

In short: This request fails. $ curl 'https://secure.ogone.com/ncol/prod/orderstandard.asp' -vv * About to connect() to secure.ogone.com port 443 (#0) * Trying 213.254.248.101... connected * successfully set certificate verify locations: * …
The Shurrican
  • 2,240
  • 7
  • 39
  • 60
5
votes
2 answers

Curl through intermediate server

I need to send PUT/GET/POST request with curl through a custom port from client1 to server2. However, server2 only accepts these requests from server1, and denies client1 if connected directly. What would be the best way to tunnel curl requests from…
Arman
  • 165
  • 1
  • 1
  • 5
5
votes
2 answers

Why does curl work with a specific https site, but wget has problems with certificates?

Centos 6. After updating recently ca-certificates I run into some troubles. I have the most recent versions of curl for centos 6: -bash-4.1$ curl -V -v curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18…
keypress
  • 241
  • 2
  • 8
5
votes
2 answers

Upgrading curl on centos 6: libcurl-7.50 requires libnghttp2

I am trying to upgrade curl but keep on getting this error: Package: libcurl-7.50.0-1.1.cf.rhel6.x86_64 (CityFan) Requires: libnghttp2.so.14()(64bit) I am not sure how to get this required package? I'm using…
keeg
  • 459
  • 2
  • 6
  • 11
5
votes
1 answer

why is curl to https not working

I can do the following without any problems: curl -u "username:password" http://www.example.com/exportfile.xml But if I try to use the same command to the https version of our site it fails curl -u "username:password"…
ITFun
  • 69
  • 1
  • 1
  • 3
5
votes
2 answers

Faster way to ping URL than curl

What would be the fastest way to check whether the specified URL is working? (responding in OK http status code)? For now I'm using curl, but I have bunch of URLs to test in a loop, so I'm looking for the fastest solution. Any options to check…
Sfisioza
  • 592
  • 2
  • 8
  • 18