cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

3
votes
1answer
31 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. ...
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 ...
0
votes
0answers
15 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
25 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
12k 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 ...
3
votes
4answers
15k 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 ...
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 ...
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 ...
7
votes
5answers
5k 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
23 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 ...
0
votes
1answer
20 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, ...
10
votes
4answers
38k 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
2answers
1k 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
8 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
13k 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
111 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
1k 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 ...
0
votes
2answers
845 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
23 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
91 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
27 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
27 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 ...
0
votes
1answer
41 views

Why is nginx giving 200 OK response , even though domain is not hosted on my server ? and how can i fix it?

i have hosted example.com on nginx web server at ip 123.123.123.123 and if i use curl with host headers like this from remote machine curl -v -H "Host: example.com" 123.123.123.123/ i get curl -v ...
1
vote
0answers
132 views

curl: (1) Protocol “https” not supported or disabled in libcurl

I've a CentOS6 vps on which O trying to access https url through curl it gives not supported error # curl https://google.com curl: (1) Protocol "https" not supported or disabled in libcurl Anyone ...
6
votes
2answers
9k views

How to log outgoing http requests from PHP + cURL?

I have a PHP script set up that makes cURL requests whenever an action is performed on a site. The problem is that the information is being POSTed twice whenever the action is run. I need to work ...
0
votes
0answers
23 views

Unable to access internet through amazon ec2 instance

I have instance running on Amazon EC2.Basically i am accessing my Amazon EC2 instance through VPN using Vagrant openconnect https://github.com/ericmann/openconnect-vm . I am able to ssh into instance ...
0
votes
0answers
103 views

curl: (60) SSL certificate : unable to get local issuer certificate

When I try curl -Iv https://yahoo.com I get an error as unable to get local issuer certificate in the result. However if I try curl -Iv --cacert /etc/ssl/certs/ca-certificates.crt https://yahoo.com I ...
1
vote
1answer
294 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
0answers
18 views

HEROKU php-buildpack but upgrade cURL and LibSSH2 to support SFTP

Im trying to enable my php app to use cURL to do SFTP via a proxy. phpseclib is not an option as it dosn't support proxies for SFTP. I'm using the ddollar/heroku-buildpack-multi to try and "upgrade" ...
0
votes
1answer
36 views

Troubleshooting connectivity when curl returns 'empty reply' from a server on my computer only

For whatever reason, my computer (Mac OS X 10.11.1) cannot fetch a webpage from a website using curl when it works fine on other computers. Also ping works but curl doesn't: $ ping ...
1
vote
0answers
78 views

curl (7) a failed connection in docker

I'm using docker on ubuntu. cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS" I have this container: CONTAINER ID ...
0
votes
0answers
74 views

How to compile php and curl-extension with custom version libcurl?

I want compile php-5.6.15 with custom version of libcurl. Why? There was a bug with curl which makes some https requests failed. My distro's repositories contains just version with bug. So I guess I ...
1
vote
1answer
62 views

tcp retransmit via curl and netcat

I'm trying to setup iptables to cause realistic network failures between docker containers. On the server, I run both netcat -lk 1234 and an Erlang cowboy server. On the client I run clients: echo ...
0
votes
1answer
1k views

Post compiled php 5.4 curl installation

I recently compiled php 5.4 from source. I have Centos 6. I used this configuration: # ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql # make # make install # cp php.ini-dist ...
4
votes
3answers
30k views

How do I use curl in a cron job?

I need to set up a cron job in cpanel that calls a URL (on the same server) once a week. I was going to use wget but it turns out this is disabled on the shared server being used. Is there an ...
0
votes
0answers
106 views

SSL with cURL vs. sudo cURL, wget, openssl

When using cURL as root, everything works fine: $ sudo curl -vvv https://test.example.org/ > /dev/null * Connected to test.example.org (1.2.3.4) port 443 (#0) * Initializing NSS with certpath: ...
0
votes
0answers
64 views

Curl Error Connection timed out

I have a website (www.example.com | 123.456.789), in that machine i only have 1 web app running. i am trying to use php file_get_content() to a file which in my own server (located on some file like ...
1
vote
3answers
2k views

Does CURL cache requests?

This is a pretty long question, so bear with me. I wanted to stress my Akamai Server logged in from an AWS instance. So, I started running ab benchmark. However, they seemed ridiculously fast to ...
0
votes
0answers
54 views

Installing an intermediate cert on Debian 8 for curl/openssl connections.

I am trying to contact a url via php's stream_socket_client() command which is failing with no error code or msg. Does this use openssl, curl or something else? The site uses https and works fine from ...
1
vote
0answers
37 views

Curl hangs over 2599 bytes response for specific host, where could I investigate?

I have one server that curls other servers for somepage.php, is does it with over 8 servers now, but the curl doesn't work on only one of them, it simply hangs. Investigating it further, I noticed ...
1
vote
0answers
88 views

Apache timeouts and TCP retransmission

The documentation for the timeout directive in apache states that: When writing data to the client, the length of time to wait for an acknowledgement of a packet if the send buffer is full. But ...
-2
votes
1answer
763 views

Compile curl with openssl

I'm trying to compile curl with openssl support and though I've tried for hours I still cannot figure out what I'm doing wrong. Here's what I did: compile openssl like this: cd ...
0
votes
0answers
79 views

Amazon S3 upload error: An exception occurred while uploading parts to a multipart upload

I am trying to upload a 30 GB file to Amazon S3 using the AWS PHP SDK. require('../vendor/autoload.php'); $client = new Aws\S3\S3Client([ 'version' => 'latest', 'region' => 'us-east-1' ]); ...
2
votes
1answer
3k views

Adding a self-signed cert to the trusted certs within cURL in Windows?

I have created a self-signed cert from the instructions on this page, have installed it and it appears to all be working correctly, but now I need cURL to trust it. Since the later versions of cURL ...
3
votes
1answer
228 views

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 ...
0
votes
1answer
91 views

Download an SSL certificate from a remote website through a proxy

I want a script checking my server's certificate. There are very good answers around here how to get this with openssl s_client or gnutls-cli, which works fine.... but NOT if you are behind a proxy! ...
6
votes
3answers
8k views

Download urls listed in a file using curl?

I have a file that has all the urls from which I need to download. However I need to limit one download at a time. i.e. the next download should begin only once previous one is finished. Is this ...
1
vote
1answer
65 views

Which Ubuntu package has the CA for debian.neo4j.org (godaddy)?

The neo4j site shows that you should get their certificate using wget -q -O - http://debian.neo4j.org/neotechnology.gpg.key This, of course, could allow their certificate to be hacked. So, I ...
2
votes
0answers
67 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
41 views

Server becomes unresponsive while under load

We have a server setup containing 2 webservers, a RDS MySQL cluster and a loadbalancer, on AWS. The webservers are running PHP and Nginx, and contains multiple services each. We have a service ...