cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

8
votes
4answers
28k 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 ...
6
votes
1answer
685 views

DNS issues on Google compute engine

I'm experiencing some interesting network issues, which I can reproduce and work around, although not explain - therefore I ask you! :) I have a setup with two servers, both located in Google's ...
0
votes
1answer
654 views

can not curl large files

I am using the following curl syntax to copy a file to another server and it is working as expected. curl -F file=@/home/abc.txt.gz http://1.2.3.4/upload.php But if the file abc.txt.gz is more than ...
0
votes
1answer
391 views

PHP curl showing wrong version

Hi I have been trying to get Curl with SSL support on CentOS 5.9 server . I have in the process updated php to 5.4.11 using the remi repo. The system is running plesk and when I do I look at phpinfo() ...
1
vote
1answer
1k views

HTTP Request Header limit hard coded in Apache 2.2

I looked up some other question concerning this on SF, they revolved around a maximum limit being set for LimitRequestFieldSize and LimitRequestLine at 8K. httpd's documentation confirms the limit, ...
1
vote
3answers
2k views

Why is my curlftpfs write only?

I have mounted a FTP backup solution to /opt/backup and it seems to be write only (even as root, as shown). # touch foo # ls -l -rw-r--r-- 1 root root 0 Feb 19 16:00 foo # cat foo cat: foo: ...
14
votes
2answers
19k views

Curl: disable certificate verification

I am developing and I need to access https://localhost. I know the certificate will not match. I just want curl to ignore that. Currently it gives me the following error message: curl: (51) SSL peer ...
1
vote
2answers
463 views

installing composer failes. Unable to access http://

I am trying to install composer with the command: curl -s https://getcomposer.org/installer | php And I am getting this error: PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and ...
1
vote
1answer
992 views

cURL error on OpenIndiana: “error: error setting certificate verify locations”

I was trying to git clone a repository using https:// on OpenIndiana, and got the following error: Initialized empty Git repository in /home/gak/vagrant/.git/ error: error setting certificate verify ...
3
votes
3answers
8k views

Execute curl requests in parallel in bash

What is the best way to execute 5 curl requests in parallel from a bash script? I can't run them in serial for performance reasons.
2
votes
1answer
178 views

Ubuntu 12.04 and 12.10 don't have new Thawte intermediary certs?

I recently swapped my sites SSL certificate over to a new Thawte 2048 bit cert. Ubuntu/libcurl doesn't seem to be able to verify it. Web browsers and OSX is fine. I had to manually update the cert ...
1
vote
1answer
3k views

cURL looking for CA in the wrong place

On Redhat Linux, in a PHP script I am setting cURL options as such: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, True); curl_setopt($ch, CURLOPT_CAINFO, '/home/andrew/share/cacert.pem'); Yet I am ...
1
vote
1answer
1k views

Using curl -s in *nix command line not working for some reason

I am trying to install composer (though to be honest I really have no idea how it fully works and documentation seems to be quite poor) on my MediaTemple DV machine. I am using their instructions ...
8
votes
2answers
6k views

How to test a HTTPS URL with a given IP address

Let's say a website is load-balanced between several servers. I want to run a command to test whether it's working, such as curl DOMAIN.TLD. So, to isolate each IP address, I specify the IP manually. ...
0
votes
1answer
246 views

Installing CURL on Ubuntu Karmic

Trying to get this up and running: https://github.com/cloudnull/massupload I have everything except CURL installed and when I attempt to, it fails with the following: Reading package lists... Done ...
-1
votes
1answer
698 views

Iptables blocks outgoing HTTP connection

I've setup IPTables with the following script... however, I cannot get outgoing HTTP queries to work (I've tried using lynx & curl). Background - server is hosted remotely (and I'm connecting via ...
1
vote
2answers
794 views

AWS PHP Curl with SSL

I'm trying to install the Amazon Web Services PHP SDK on my Ubuntu LAMP server. Whenever I run the compatibly check everything but cURL comes back okay. The issue I'm having is that it's reporting I ...
0
votes
1answer
828 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 ...
0
votes
2answers
4k views

What is the correct dependency rpm for libcurl.so.3

So I have a failed dependency and I am having trouble downloading the correct rpm. The error is libcurl.so.3()(64bit) is needed. I have Centos 6 and I have looking in this site for the correct rpm. ...
4
votes
1answer
4k views

Install Composer on Ubuntu

I am trying to install composer with the command: sudo curl -s https://getcomposer.org/installer | php And I am getting this error: All settings correct for using Composer Downloading... Download ...
1
vote
2answers
6k 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 ...
2
votes
1answer
49 views

Capturing output of 'at'

How can I log the output of a command executed by at? This command is actually being exec()'d by PHP as in: <?php exec('echo "curl -k https://localhost/projekt/crons/purge/5" | at now + 5 ...
2
votes
1answer
2k views

PHPCurl and curl failing with Error “SSL read: error:00000000:lib(0):func(0):reason(0), errno 104”

Since upgrading to Ubuntu 12.04 I've started receiving errors on SSL based curl requests to Apple's verification servers. This happens on all of my 12.04 servers. Using this command curl -Iv ...
6
votes
2answers
3k views

Why is my new Ubuntu 12.04 unable to verify a Verisign ssl certificate?

In short: This request fails. $ curl 'https://secure.ogone.com/ncol/prod/orderstandard.asp' -vv * About to connect() to secure.ogone.com port 443 (#0) * Trying 213.254.248.101... connected * ...
0
votes
1answer
5k views

How do I download all the files in a directory with cURL?

I am using cURL to try to download all files in a certain directory. Here's what my list of files looks like: I have tried to do in bash script: iiumlabs.[].csv.pgp and iiumlabs* and I guess cURL ...
4
votes
2answers
1k views

Brew install imagemagick curl fails

I am getting the following error when trying to install imagemagick via brew on OS X Mountain Lion. It appears to be a curl error - hence why it's on SF not another of the Stack Exchange sites. brew ...
0
votes
1answer
554 views

curl on Tomato USB - SSL CA issue

I installed optware and I have curl available. I'm trying to get it to notify me (through pushover) when the router is rebooted. curl \ -F "token=<token goes here>" \ -F "user=<user key goes ...
-2
votes
1answer
193 views

Unable to acces Nagios from Ec2

I have installed Nagios by following this tutorial here. But when I tried to connect to localhost/nagios3 using curl from console, making sure that Nagios is installed and running(since I'm getting ...
1
vote
2answers
2k views

Ubuntu 10.04.4 LTS - cURL SSL certificate permission denied

After extensive searching I haven't found documentation of this problem yet. Suddenly, possibly following a software update(?), cURL fails to establish SSL connections with this error: curl: (35) ...
1
vote
2answers
2k views

git refuses to send credentials over http?

curl seems to work fine, but git does not. git asks for a password, but then doesn't send any credentials. works: curl --netrc http://test.git.unsw.edu.au/ and curl -u username:password ...
3
votes
2answers
5k views

NTLM with cURL returns 401

Goal: connecting to an Exchange server (EWS) Method: cURL Problem: Cannot get authenticated (NTLM), request returns 401.1 There seems to be an old, well documented 2 issue that started with cURL's ...
0
votes
1answer
165 views

PHP Script Issue While Running

I have the following PHP script for in-app purchase verification for an iPhone app. However, the script (from chrismaddern) runs effectively on localhost (mac) and does not run or give any output on ...
1
vote
1answer
663 views

how to monitor cURL calls

I have a PHP based CMS which makes requests to service provider (a java based ECM(enterprise content management) currently located in the same server as my PHP) and inserts the response to mysql. ...
0
votes
4answers
732 views

Is cURL standard part of all Unix-like operating systems?

I'm writing a shell script that needs to download some data from the Internet and I was just thinking if I can rely on cURL that it's pre-installed on all Unix distributions. I know that wget is not ...
2
votes
0answers
430 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 ...
17
votes
5answers
28k 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 ...
1
vote
1answer
582 views

getaddrinfo(3) failed

I'm trying to connect to a webservice using a PHP wrapper (which is using curl under the covers). On my local linux machine running PHP 5.3 it works perfectly. However, when I move to a remote server ...
0
votes
1answer
219 views

cURL newest version on Debia Squeeze

Why Debian Squeeze repositories points to cURL version 7.21.0 which is from June 2010 and not the version 7.26.0 which is from May of this year(cURL Changelog)?? I want to update to the version 7.26 ...
-1
votes
1answer
710 views

Error on installing Curl in Red Hat

Got this error when i installed curl in my Red Hat Enterprise Linux Server ../lib/.libs/libcurl.so: undefined reference to `ERR_remove_thread_state' collect2: ld returned 1 exit status make[2]: ...
0
votes
1answer
632 views

How to upgrade php curl on Ubuntu 10.04

I have a web service on 64bit AWS/ubuntu 10.04 machine. Current php ver PHP Version 5.3.2-1ubuntu4.15. Current curl ver: 7.19.7 This Curl version has a memory leak and I need to upgrade to V 7.25.0 ...
2
votes
1answer
894 views

file_get_contents url wrappers work on cli but not cgi

I have a big problem. I have just upgraded to a new dedicated server running Plesk 10, and Ubuntu 11.04 and my scripts can't run file_get_contents or curl to external urls in cgi mode. ...
0
votes
1answer
3k views

Dependency issues while installing curl-devel

I'm trying to run the passenger-install-apache2-module so I can install Redmine on CentOS 5.8, but passenger-install-apache2-module tells me I need Curl development headers with SSL support, which it ...
0
votes
1answer
118 views

cpanel cronjob curl increase file size [closed]

I created a bash script to run as a cronjob with Cpanel: --------------content of cron.sh--------------------- #!/bin/bash curl http://website.com/1.gif >> ...
1
vote
0answers
3k 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 ...
0
votes
3answers
6k views

I would like to know the equivalent command to curl in Solaris

I would like to know equivalent command to curl in Solaris. As in Linux, the curl command is used to find the website activity. Kindly let me know command to check website in Solaris.
2
votes
3answers
11k views

Curl request wont resolve to localhost

I have an ubuntu server running apache on localhost / port 80. It's domain is sub.domain.com If I make a curl request to http://localhost on that machine it will error with 'couldnt connect to host' ...
1
vote
1answer
920 views

Allow outgoing connections for cURL on LAMP stack

I've been trying to setup a LAMP stack to use as a web development server and it's proving to be very frustrating for a novice like myself. On a Fedora 16 machine, I've got Apache, MySQL, PHP, cURL, ...
0
votes
2answers
743 views

Curl and Wget returns different response code

I am trying to wget a link, this wget works fine on my local machine but it doesn't do so on the server. i tried to check the response header and i got the following on my local laptop curl -I ...
3
votes
2answers
9k views

Ubuntu 11.10, using wget/curl fails with ssl

On a completely new install of Ubuntu I'm getting the following errors when using wget: wget https://test.sagepay.com --2012-03-27 12:55:12-- https://test.sagepay.com/ Resolving test.sagepay.com... ...
0
votes
1answer
889 views

PHP, Apache and curl: Differences between Windows and Linux?

I'm trying to run my php App on Ubuntu Server 11.10. This App works fine under Apache + PHP in windows. I have other applications that I can simply copy&paste between the 2 OS and they work on ...