cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

2
votes
5answers
3k views

Default CA Cert Bundle Location

I need to add a .pem cert file to my default CA cert bundle but I don't know where the default CA Cert bundle is kept. I need to append my new .pem file to this default bundle. I'd rather do that ...
0
votes
0answers
13 views

Why cURL stops after 5 run?

My cURL running Linux shell script stop after five requests: #!/bin/bash curl --connect-timeout 20 -s -o /dev/null -w "%{http_code}" http://192.168.1.1:500/;echo "http://192.168.1.1:500/:";sleep 1; ...
3
votes
1answer
4k views

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 ...
2
votes
1answer
446 views

LetsEncrypt: Unknown SSL protocol error in connection

I have a host with LE certificate and it works well in a browsers, but I still can't connect using curl, openssl, wget, POST (libwww-perl): curl # curl -v -3 https://example.com/ * Hostname was NOT ...
1
vote
2answers
1k views

Upgrade curl to latest on CentOS 7

I need to upgrade cURL on my VPS running CentOS 7. I'm gettings errors as: cURL Error(35): Cannot communicate securely with peer: no common encryption algorithm(s) I've used the answer given here ...
0
votes
1answer
1k views

Using curl with cookies

I hope someone can help me out on this one. I have been trying this for a while now, with all sorts of variations and cannot seem to get this to work. I am trying to script a way to log in to ...
1
vote
2answers
2k views

windows php curl install : recommend a good site? [closed]

So I'm struggling to get php curl installed on my windows xp professional machine and I've probably tried 5 different sites which either dont' work or refers to missing file references like the ca ...
1
vote
1answer
5k views

How to use cURL to FTPS upload to SecureTransport (hint: SITE AUTH and client certificates)

I'm trying to connect to SecureTransport 4.5.1 via FTPS using curl compiled with gnutls. You need to use --ftp-alternative-to-user "SITE AUTH" per http://curl.haxx.se/mail/lib-2006-07/0068.html Do ...
0
votes
1answer
17 views

self-curl blocked by iptables

I can't figure out which rule is missing to make this happen... # iptables -Z ; curl -v -k --connect-timeout 2 http://www.myhost.com/ ; iptables -L -v * Hostname was NOT found in DNS cache * Trying ...
1
vote
2answers
2k views

How to fix Apache from crashing with PHP+Curl on an SSL request?

My Apache process segfaults whenever I call curl_exec() from PHP with an "https://" URL. If I use http instead of https as the URL transport, it works perfectly, so I know curl and the other curl ...
0
votes
0answers
31 views

curl does not work with tlsv1.2

I am unable to get curl to work with redhat Linux 5 or 6 with tlsv1.2. wget works but not curl. I attempted to download the source and compile various version but was not successful. It compiles as ...
1
vote
1answer
43 views

PHP curl broken

Curl seems to hang when making calls. This is breaking wordpress/wp-admin sites & the twillio helper library used for IP-SMS. This issue appeared after installing vsftpd and creating new users. ...
0
votes
1answer
222 views

curl (56) Recv failure: Connection reset by peer - when hitting docker container

From an AWS ec2 instance (which runs docker), I am trying to curl my docker container-hosted web service. Given: [ec2-user]$ docker ps CONTAINER ID        IMAGE                                       ...
2
votes
2answers
12k views

Curl with SSL not working on ubuntu server

When I try to Curl a SSL page on my ubuntu 12.04 TLS server, it won't work: not ssl page: $ curl https://evernote.com/ -vv [the entire webpage] ssl page: $ curl https://evernote.com/ -vv * About ...
1
vote
0answers
71 views

curl NSS Error -12156 ssl connect error

I'm seeing the following error while running cURL on an AWS server: curl -v --insecure --disable-epsv -l ftps://foo.com/ --user "foo:bar" * Initializing NSS with certpath: sql:/etc/pki/nssdb * ...
0
votes
1answer
49 views

parse server file upload

I've created an instance of parse server. I can get data from the collection no problem, but I'm stuck as to how to upload text files. I'm running curl from windows to upload a simple backup log. ...
2
votes
1answer
115 views

Building curl, httpd and others with custom openssl build, while avoiding default system openssl

I've been trying to upgrade some programs on an old Linux box (Debian 7.5 wheezy). I'd like to keep default system libs untouched and to add some custom builds alongside them. It works fine for most ...
0
votes
1answer
41 views

nginx seems to use wrong php service

i wanted to increase my max. upload file size and install cURL to php5-fpm today. I have installed a LAMP stack on my Ubuntu 14.04. But the changes doesn't take any effect after reloading/restarting ...
0
votes
1answer
79 views

PHP CURL does not support RTMP protocol

I am trying to fetch RTMP url using PHP CURL, but unfortunately php curl says >Protocol "rtmp" not supported or disabled in libcurl I have installed rtmpdump and upgraded CURL to 7.47.1 latest stable ...
0
votes
0answers
107 views

GET to NGINX reverse proxy works but POST gives me a 502 Bad Gateway Response

I am using NGINX as a reverse proxy and just put up a new service written in Go. The service has two endpoints GET /tracking/ping POST /tracking/customer In NGINX, I am using the following to ...
0
votes
1answer
46 views

How do I assign the result of curl to a systemd variable?

I am using an Amazon Web Service server, and am trying to setup a systemd job that takes as an input the AWS external IP retrieved by curl. [Unit] Description=My example with AWS external IP ...
0
votes
1answer
2k views

retrieve file size from HTTP headers without downloading the file with CURL (no HEAD)

What i want to do is knowa file size and not download it. I've tried it with HEAD but the server doesn't respond curl_setopt($curl, CURLOPT_NOBODY, true); if i quit this , it will , but it will ...
1
vote
1answer
436 views

Updated cURL not taking effect in PHP

I have an application running through Docker, based on the official PHP Docker image. I've extended it to update cURL and get it working with nghttp2 and openssl, which is what I need for HTTP/2 ...
1
vote
1answer
601 views

curl 7.21 does not correctly call a host with a host header on https

We found out that calling a host like following using curl 7.21 or 7.24 does produce an error in the apache config (we have multiple SSL Vhosts!). Whereas the same command runs smooth with curl 7.34 ...
0
votes
0answers
64 views

How to avoid curl trying IPv6 name resolution

From a docker container when I try to curl 'another container name', curl first tries to resolve the name to IPv6. This causes few seconds delay because the web server is not reachable over ipv6. I ...
1
vote
1answer
42 views

php cURL not working

The php cURL extension on the Apache server I've inherited from my predecessor doesn't work. I'm using the following code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, ...
0
votes
0answers
110 views

Changing SSL-version for curl

I have been trying for hours to change the SSL Version for curl from NSS to OpenSSL because I have a web application that's dependant on it. I'm running RedHat RHEL 6.7 on a 64-bit system. I have ...
2
votes
1answer
5k views

curl FTPS with client certificate to a vsftpd

I'd like to authenticate FTP clients either via username+password or a client certificate. Only FTPS is allowed. User/password works, but while testing with curl (I don't have another option) and a ...
11
votes
1answer
298 views

How to use Chrome's CRL sets (or some master CRL list) as a CRL file?

I am looking for a master CRL list. The closest thing I have found is the Chromium project's CRLSets. I used crlset-tools to get the crlset (crlset fetch > crl-set) and then dumped the serial ...
-1
votes
2answers
23 views

using Curl for Rest API calls - Authenication Failure

I have an authentication problem with a REST API Call with curl, I think its to do with the formatting of my curl input. curl -v https://api.ananthsdomain.com/version1/testaccount/test \ -H ...
0
votes
0answers
341 views

Utilizing TLS 1.2 on CentOS 5.11 for use with Paypal IPN

Our current web stack is installed on a CentOS 5.11 server with Plesk. We are using PHP 5.4, cURL 7.47.1, and openSSL 0.9.8e-fips-rhel5 01 Jul 2008. I am trying to run Paypal IPNs using code based off ...
3
votes
1answer
367 views

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. ...
0
votes
0answers
39 views

HTTPS tomcat 7 working only with curl not in browser

I have added in server.xml: <Connector port="8081" protocol="HTTP/1.1" SSLEnabled="true" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" ...
0
votes
1answer
69 views

Geotrust SSL certification issue

I have an issue with curl (Centos 6 env) does not recognize Geotrust intermediary certificate: * Trying 192.168.6.6... connected * Connected to composer.graymatter.co.uk (192.168.6.6) port 443 (#0) ...
3
votes
2answers
14k views

Upgrade curl to latest on CentOS 6.3

Thought this would be a simple process, but I guess not. I need the latest version of CURL (7.23 or newer) on CentOS 6.3. If I do this: sudo yum upgrade curl It just tells me there is nothing ...
4
votes
4answers
18k views

curl succeeds on an https request, wget does not

When I run curl from the command line curl "https://example.com" It succeeds immediately, returning the result of the request. When I run the same wget command wget https://example.com It ...
3
votes
1answer
2k views

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 <ip>, and copied it ...
16
votes
5answers
11k views

Displaying a remote SSL certificate details using CLI tools

In Chrome, clicking on the green HTTPS lock icon opens a window with the certificate details: When I tried the same with cURL, I got only some of the information: $ curl -vvI https://gnupg.org * ...
0
votes
1answer
109 views

Is there a default CAfile/CApath location for solaris openssl and curl?

I have already tried several locations and neither openssl nor curl recognize the certificate file I have placed there. I have tried these paths: /etc/certs /etc/sfw/openssl/certs /etc/ssl/certs ...
-1
votes
1answer
54 views

404 header error instead of the correct 200

I have just updated a (dynamic) website by sftp/ssh and all the new pages have been considered as 404 error not found. Actually, all the pages, including the old pages which was overwritten. Also, ...
12
votes
4answers
45k views

Is there a built-in command-line tool under Windows like wget/curl?

I come from a Linux/Unix background and I have been wondering if Windows has a binary that can download files from the console. I would like to automate a certain process and one of my requirements ...
0
votes
0answers
28 views

Install old Ubuntu Vivid Curl (7.38.0) on Ubuntu Wily

How do I install Curl binaries version 7.38.0 (from Ubuntu Vivid 15.04) onto Ubuntu Wily 15.10? My goal is to make sure curl is using openssl, not gnutls. This is what I want: ...
8
votes
6answers
15k views

How is it possible that I can do a host lookup but not a curl?

Has anyone ever seen this before? Note that this happens not only with google.com, but with every domain I try. It's a wireless connection (WEP), but I'm not sure how that would be relevant: $ curl ...
0
votes
2answers
133 views

Curl to self using fully qualified address

I'm running a Virtual Private Server to host some websites. I have a PHP script that tries to fetch resources from the server, essentially using a curl command to the server ...
0
votes
1answer
2k views

DNS failure crashing web site - CURL requests

My PHP keeps throwing random errors which relate to slow scripts. nginx/php5-fpm report in their error logs that the child has been terminated due to script timeout. PHP5-FPM slow error log reports ...
1
vote
2answers
2k views

libcurl.so.4 no version information available

curl: /usr/local/lib/libcurl.so.4: no version information available (required by curl) This is the error I am getting. This error has not stopped any scripts or apps from running or preforming their ...
0
votes
0answers
67 views

Manual autodiscover implementation failing. Why?

I am managing a mail server, and would like to have my Outlook users be able to automatically set up their mail server information. Normally this is done with an autodiscover file. Here's how I ...
0
votes
2answers
269 views

Unable to install CURL on Docker Ubuntu image

I'm trying to install curl on ubuntu 14.04 in Docker image and the simple: sudo apt-get update sudo apt-get install curl will never work with the following output. It seems that curl installation is ...
1
vote
1answer
31 views

HTTP Header's not matching

Is there a difference between what headers php returns and what is set in nginx? When I run: curl -I mydomain.com I get as expected (I have keep-alive off) Connection: close But when I output ...
-1
votes
1answer
30 views

Why does host+curl take longer than host alone and curl alone?

I asked this on networkengineering.se, and they suggested I move it here. I tried to test the speed of my website, so I used time curl "http://google.com" The result ended with real 0m15.589s ...