cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

-1
votes
0answers
9 views

Safemode and Openbasedir issues on centos + vestacp [on hold]

VPS : CentOS 6.8 x64 Admin: VestaCP I am trying to rsync my sites from another server. Rsync goes fine. When I try to reach the site (the new one, rsynced to this server), I got an error in my ...
3
votes
1answer
5k 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 ...
1
vote
0answers
15 views

OpenSSL Header Version != OpenSSL Library Version affecting HTTP/2 for APNS

i have this weird combo on my openSSL on WAMP. My windows command prompt openssl version returns the library version -> OpenSSL 1.0.2h 3 May 2016 while my php curl call -> echo "openssl version text:...
1
vote
3answers
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 ...
1
vote
1answer
1k views

make PHP curl use openssl instead of NSS

Does anyone know how could I force php to use curl with openssl instead of NSS on RHEL 6? I've installed curl-openssl-7.30.0-1.1.el6.x86_64.rpm but how can I tell php to use it? Actually is there a ...
0
votes
0answers
22 views

Troubleshooting connection timeouts and SYN_RECV

My DigitalOcean droplet fails very often to connect to different resources, like making a REST call with curl or establish SSH connection. Every time it happens, I can see sockets with SYN_RECV state ...
0
votes
1answer
2k 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 https://...
0
votes
1answer
29 views

Why do my two live servers not run this curl command, but my local test server does?

I have three servers. Two are live servers hosting web sites for the internet. One is a local testing server, not visible on the internet at larger. I am trying to run a PHP script that posts to ...
5
votes
1answer
1k views

What does “Server ****** is not blacklisted” means in curl verbose output? [closed]

Why should the server be blacklisted ? By curl or another program ? How server can get blacklisted ? Is it server or program dependant ? Is this the IP address that get blacklisted, or the name ...
9
votes
7answers
16k 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 ...
2
votes
2answers
158 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
0answers
43 views

Why can't curl retrieve the SSH host key (key: <none>)

I've been using curl (by means of git-ftp) for a while, and passing only username and an sftp URL. Authentication would always work implicitely through publickey. Suddenly curl will not connect ...
0
votes
0answers
19 views

Update libcurl, but php curl still showing oldversion

I've updated the libcurl to the latest version (7.49.1) from the city-fan.org repo. However, when I do php -i | grep curl, it is still showing the old curl version (7.19.3). Any help would be ...
1
vote
1answer
718 views

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" ...
22
votes
5answers
47k views

How to update cURL CA bundle on RedHat?

I am running into issues where the CA bundle that has been bundled with my version of cURL is outdated. curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL ...
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
18 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; ...
2
votes
1answer
572 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
2k 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 ...
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
6k 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
24 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 ...
0
votes
0answers
41 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
69 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. ...
1
vote
1answer
917 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
13k 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
122 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
92 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. ...
0
votes
1answer
57 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
109 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
160 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
66 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 Wants=...
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
605 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
691 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
77 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
49 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, 'https://www....
0
votes
0answers
150 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 ...
12
votes
1answer
318 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
28 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 "...
1
vote
0answers
562 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
623 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
49 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" enableLookups="false"...
0
votes
1answer
98 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
20k 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 ...
17
votes
5answers
15k 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
160 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 /...