Questions tagged [curl]

cURL is an HTTP client library and command line tool.

646 questions
4
votes
1 answer

How to check haproxy sni-based rule with curl?

I made simple HaProxy configuration to pass thorough traffic based on SNI field. Here is my haproxy.cfg defaults log global timeout client 50s timeout client-fin 50s timeout connect 5s timeout server 10s timeout tunnel…
Kirill
  • 245
  • 3
  • 7
4
votes
3 answers

Can I validate a large file download piecemeal over http

I'm downloading a large file over http via wget, 1.2TB. The download takes about a week and has contained corruptions twice now (failed md5 check, which takes days to run by itself). Is there a good way to validate the file piecemeal over http using…
davidparks21
  • 928
  • 1
  • 12
  • 27
4
votes
1 answer

Cannot get cURL or wget to validate some SSL certificates

I've noticed that our link checker, which uses cURL, fails more and more often to validate SSL certificates. I'm trying to get to the bottom of this. https://www.bgetem.de/, for instance, opens just fine on every browser (IE 11, Firefox, Opera,…
user2323470
  • 183
  • 4
  • 9
4
votes
1 answer

How do I "override" Server response header on a ReverseProxied website?

I am running a couple of websites on different server on a local network. All websites are Proxied via one server where HTTPS is added and the trafic is monitored. Currently, if someone makes a: curl -I subdomain.domain.tld The result is: curl -I…
Orphans
  • 1,396
  • 2
  • 18
  • 30
4
votes
1 answer

Can't curl a linked container in Docker

I don't have a complex setup. 2 containers, one for my application and one for my API. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8f07c240bee2 …
coolfarmer
  • 41
  • 1
  • 2
4
votes
2 answers

Add SSL certificate after curl error: "unable to get local issuer certificate"

I'm trying to access a partners SOAP API, for that goal I made a CSR and received a CRT. I've made a PEM file with my key and the CRT: cat mycert.crt mykey.key > mycertandkey.pem When I try to hit the service with curl: curl --verbose --cert…
Ixio
  • 173
  • 1
  • 2
  • 8
4
votes
0 answers

CURL PHP can't resolve host

I'm trying a php script that is doing requests with CURL. But I get the error Couldn't resolve host 'example.com' $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER , true); curl_setopt($ch, CURLOPT_URL, 'https://example.com'); curl_setopt($ch,…
Alkalyne
  • 41
  • 1
  • 2
4
votes
2 answers

Upload large files with curl without RAM cache.

I'm using curl to upload large files (from 5 to 20Gb) to HOOP based on HDFS (Hadoop Cluster) as follows: curl -f --data-binary "@$file" "$HOOP_HOST$UPLOAD_PATH?user.name=$HOOP_USER&op=create" But when curl uploading large file it trying to fully…
Gening D.
  • 81
  • 1
  • 5
4
votes
1 answer

Connection to URL using OpenSSL client works, but curl fails

I have a CentOS 5.9 server, from which I need to make SSL connections to another server. The remote server has a certificate ultimately signed by the GeoTrust Global CA. At the time of writing, this certificate is the second one listed on…
Dave Mulligan
  • 141
  • 1
  • 1
  • 3
4
votes
1 answer

SSL23_GET_SERVER_HELLO:reason(1112) issue curl 7.25.0

Please consider two curl commands: curl -v --ssl https://example.com * About to connect() to example.com port 443 (#0) * Trying 10.20.30.40... * connected * Connected to example.com (10.20.30.40) port 443 (#0) * successfully set certificate verify…
Peter
  • 167
  • 1
  • 3
  • 16
4
votes
1 answer

How to alias a ssl certificate common name?

I have a server, which has a self signed certificate, which I am trying to securely access. I've got the certificate by looking at the output from openssl s_client -connect , and copied it to testcert.pem, which I then tried to use with curl…
Benubird
  • 523
  • 1
  • 5
  • 11
4
votes
2 answers

curl receiving a 302 or something, weird

I have the following curl command curl -X POST -w "\nRESULT CODE:%{http_code}\n" --insecure --header "Content-Type:application/json" --user robot-midc:1ZSXM7 -d @table.json http://databus.nrel.gov/api/registerV1 and I receive the following…
Dean Hiller
  • 911
  • 4
  • 15
  • 35
4
votes
3 answers

OpenSSL issues in Debian Wheezy

I don't know what is exactly going on but I noticed that curl couldn't get secure pages without adding extra switches. ~# curl -v https://api.dreamhost.com * About to connect() to api.dreamhost.com port 443 (#0) * Trying 75.119.208.14... *…
Rodrigo
  • 267
  • 3
  • 12
4
votes
1 answer

libcurl Reporting Different Version Between Commands

I previously had cURL 7.22.0 on Ubuntu 12.04 Server.. but I now need to upgrade to cURL 7.30.0. I've done the following to compile this version for Ubuntu: wget http://curl.haxx.se/download/curl-7.30.0.tar.gz tar -xvzf curl-7.30.0.tar.gz cd…
BT643
  • 551
  • 3
  • 9
  • 21
4
votes
1 answer

How to send HTTP request issued by cURL through VPN?

Please excuse me for (probably) the noob question, but I am very new to Linux networking. I've already spent a few days searching the Internet for an answer to my question, but was unable to find one, so I decided to post a question over here,…
maringtr
  • 155
  • 1
  • 2
  • 5