cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

4
votes
1answer
3k views

curl and wget attempting an ipv6 connection

On my dedicated server (hosted by OVH), that is running a fresh install of Ubuntu 14.04, curl and wget take approximately 10 seconds to complete a simple request. $ curl -v google.com * Rebuilt URL ...
4
votes
1answer
211 views

Problems restarting Apache - Curl related

I'm having a problem compiling LAMP, I have everything compiled and working, but when I try to restart apache I get the following error: seg fault or similar nasty error detected in the parent ...
3
votes
1answer
30 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 ...
2
votes
1answer
792 views

cUrl for an HTTPS address/domain times out unless previously accessed from browser

I've lost a couple days to this problem and hope it sparks a thought from someone. I am integrating several systems together using Powershell scripts. One of the two services I am connecting to ...
2
votes
1answer
228 views

Is it necessary to validate the file integrity when curl succeeded

I have a bunch of files on S3, and I need to download and update them via command line (BASH) on several devices. What I do (as of now): Request the header of the file with -I and extract the ETag ...
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 ...
10
votes
0answers
265 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 ...
4
votes
0answers
3k views

SSL verification error with git (on github) on Ubuntu 14.04

I'm trying to clone the atom repository that just went fully open-source and I've run into some trouble. Attempting to git clone the repository is producing an SSL error: wug@wugputer:/src/test$ git ...
4
votes
0answers
2k views

What is the difference between installing libcurl4-gnutls-dev or libcurl4-nss-dev in ubuntu 11.10?

For a software that I am installing in an ubuntu server, it needs the curl deb packages. When I try to install libcurl4-dev it says that this is a virtual package and I need to install ...
3
votes
0answers
3k views

How do I enable ciphers for NSS?

I am trying to use curl built with NSS (not built with OpenSSL) on Fedora 14 to connect to a webpage over https. The server to which I am connecting (example.com) uses the RC4-SHA cipher for its SSL. ...
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 ...
2
votes
0answers
497 views

curl request results in heavy load on the server

We consume an XML Datafeed by sending cURL requests to the provider's server. They do not allow us to cache, so each pageview is a new cURL request. Twice this year, our server has crashed with the ...
2
votes
0answers
310 views

How to use sitemap.xml to create a static mirror of a CMS

Is there a tool to create a static mirror of a content management system (CMS) that provides a sitemap.xml file? Ideally, I would point a tool like wget or curl to a sitemap.xml file and have it ...
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 ...
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 ...
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 ...
1
vote
0answers
459 views

Import a P12 certificate into a NSS database (with an alias)

Here´s the deal... I have a personal P12 certificate generated by a certificate authority. I want to use it with CURL to access a protected URL. If CURL on CENTOS was compiled with openssl, I should ...
1
vote
0answers
392 views

Elasticsearch snapshot / curl error

I'm currently having an issue getting backups for ElasticSearch working correctly via their snapshotting system. Per their instructions, a snapshot repository has to be configured first, using this ...
1
vote
0answers
82 views

curl error 51 - of multiple requesting machines, only one has the issue

I have an SSL cURL request that fails from a single machine with the following error: curl: (51) SSL peer certificate or SSH remote key was not OK This error seems to have popped up overnight, and ...
1
vote
0answers
81 views

Gateway/Modem overload when running a web spider

Problem: All other devices on the network experience serious lag and timed out web pages, email, chat dropping, etc while this is running. This is a cross post from stackoverflow, I may have used the ...
1
vote
0answers
193 views

Bad HTTP Location: header with nginx proxying couchdb

I'm using nginx as a reverse proxy for CouchDB. I'd like to use a prefix for the proxy, e.g. http://[ip]:8080/proxy/testdb -> http://localhost:5984/testdb. I'm getting Location: headers in the HTTP ...
1
vote
0answers
563 views

Curl Sourced DDoS: How to detect it & how to stop?

Okay, an Ubuntu server I manage fell victim to a DDoS attack today. Usually this is unpleasant but not that big a deal. A few high server load moments & then it passes. Today was clearly ...
1
vote
0answers
427 views

cURL Chain Issues

On Ubuntu 13.10 running the system curl: curl --version curl 7.32.0 (x86_64-pc-linux-gnu) libcurl/7.32.0 OpenSSL/1.0.1e zlib/1.2.8 libidn/1.28 librtmp/2.3 Protocols: dict file ftp ftps gopher http ...
1
vote
0answers
411 views

Amazon EC2 instance of Windows Server 2012- unable to connect to simple webserver

Using Amazon EC2 I have successfully launched a Windows Server 2012 instance and configured it to run a Tomcat webserver. From within the VPS itself, I know the webserver is working because I see the ...
1
vote
0answers
474 views

cURL not loading on Ubuntu 12.04

I have come across a very weird problem. My cURL PHP extension doesn't seem to be running. I have installed cURL using this command: sudo apt-get install curl libcurl3 libcurl3-dev php5-curl And ...
1
vote
0answers
153 views

Is there a known issue resuming downloads from IIS with curl?

I am seeing an issue when trying to resume a download using curl as follows: curl -L -s -C - -o 'file.data' 'https://sever/file' The issue is only with IIS. I tried several other web servers on OSX ...
1
vote
0answers
4k views

CURL ERROR: Recv failure: Connection reset by peer - PHP Curl

I've posted a question yesterday on stackoverflow here but think this might be server related. I'm connecting using the PHP curl functionality to a server that then generates a PDF file and sends it ...
1
vote
0answers
119 views

What is PHP cURL and libcurl version relationship?

I'm running php with curl support on a mac. cURL in php works fine(ish) but I noticed an oddity reported by phpinfo(). It states that curl support is 7.19.7 But using the otool command, I get this: ...
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
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: ...
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
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 ...
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
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 ...
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 ...
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 ...
0
votes
0answers
78 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' ]); ...
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 ...
0
votes
0answers
142 views

cURL to my own server crashes apache server

I'm running a apache web sever on Ubuntu 14.04 LTS. I found myself in a situation where I from a php script on one server requested data from another php script on a second server. Both servers are ...
0
votes
0answers
218 views

nslookup is OK, but curl says Couldn't resolve host

curl -L https://github.com/docker/compose/releases/download/1.3.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose % Total % Received % Xferd Average Speed Time Time ...
0
votes
0answers
242 views

Log Outgoing cURL Requests From PHP?

I currently have PHP set up to log all sent mail messages to a log file, using the following configuration in my php.ini: mail.log = /var/log/phpmail.log And it works incredibly well. It gives me a ...
0
votes
0answers
87 views

Download a multipart message using curl

I have a file uploaded to a server as a multipart file. It looks like this. --c3bfe99041a144af90f7834a73a4da39 Content-Disposition: form-data; name="file"; filename="README" Content-Type: ...
0
votes
0answers
106 views

Segfault in libcurl.so.4.2.0 in syslog?

My syslog is being filled with entries declaring a segfault in libcurl.so.4.2.0: Mar 6 09:48:58 myserver kernel: crond[19450]: segfault at 7f46cfefbc3d ip 00007f46cff17f7d sp 00007fff79c939d8 ...
0
votes
0answers
378 views

php curl does not execute url

Im writing a php cron script that needs to run a url After some database modifications the php script needs to execute an url $url = ...
0
votes
0answers
2k views

can ping outgoing servers but cannot telnet to port 80 on http servers

I'm able to ping servers on the internet but cannot effectively curl websites or telnet to port 80 in general. there are no outgoing firewall rules and iptables is disabled. [root@rl ~]# ping ...
0
votes
0answers
770 views

Php doesn't get that Curl has SSL enabled

OS is Centos 6. I manually installed curl-7.27.0 with SSL enabled. curl --version curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.27.0 OpenSSL/1.0.0 zlib/1.2.3 c-ares/1.9.1 But my PHP doesn't ...