cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

0
votes
1answer
628 views

How to check ip blacklist using curl/wget request to mxtoolbox?

I would like to add cron job to check server ip on blacklist. something like curl 'http://mxtoolbox.com/SuperTool.aspx?action=blacklist%3a142.11.193.83' | grep 'you are on a blacklist.' wget ...
0
votes
1answer
897 views

Can download with Firefox, can't download with curl (NTLM authentication)

I want to download a file from a SharePoint server (url). I manage to download it using Firefox. I can't manage to download it using curl. Sounds surprising, but the same URL works on Firefox, fails ...
1
vote
2answers
56 views

Download and save a file with proof that it was downloaded from a specific server/url on a specific date?

Assuming the file was downloaded over http is this possible? I'm guessing there could be some way to do it using a hash and a timestamp however I'm not sure how you could prove nothing was tampered ...
-1
votes
2answers
128 views

Curl don't work on cron execution

I have bash a script like the following #!/bin/bash date curl http://lab.nextt.com.br/somefile1.html -z ../public_html/somefile1.html -o ../public_html/somefile1.html --silent --show-error ...
0
votes
2answers
438 views

Testing if a server is up with curl and grep. Grep adds headings?

Hi I'm trying to see if a server I'm running has been stopped (if it has, it returns a 502 Bad Gateway message.) So I tried to do this : curl http://MY_URL | grep "502" The curl part returns what ...
0
votes
1answer
169 views

Curl, matching a string in website response content [closed]

Is there any way that i can verify the contents of a page, if they exist in it? like if i open google.com, if its page content has "Error" in it, then i can know that the page is not opened correctly. ...
3
votes
4answers
675 views

Download a file from the shell when button click is required

I have a link to a file that I would like to download from the shell. Unfortunately, the URL redirects to a software license agreement page which requires clicking an accept button. This is fine when ...
0
votes
2answers
414 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 ...
1
vote
1answer
4k 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 ...
0
votes
2answers
490 views

CURL in PHP chroot'ed environment

How can I find out what files or sockets are needed by Curl when running in a chroot'ed PHP environment on Mac OSX? I recently secured my website by chrooting PHP but now every call to Amazon S3 ...
4
votes
4answers
15k 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
569 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
398 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
258 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
626 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
1k 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: ...
8
votes
2answers
10k 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
399 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
742 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 ...
1
vote
3answers
4k 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
166 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
1k 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
927 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 ...
0
votes
1answer
405 views

cURL gives Access denied: follow redirect to /public/

I'm running an apache web server on ubuntu server 12.04 LTS. If I try to /usr/bin/curl http://mysite.com/script.php I get the error message Access denied: follow redirect to /public/ What can ...
4
votes
2answers
3k 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
232 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
394 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 ...
0
votes
1answer
561 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
437 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 ...
-1
votes
2answers
3k 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
3k 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
3k 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 ...
1
vote
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 ...
5
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
4k 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
457 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
178 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
1k 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
1k 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
3k 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
159 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
514 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. ...
1
vote
0answers
728 views

Uncaught CurlException: 7: couldn't connect to host thrown in /xxx/base_facebook.php on line 886

I get the above error when I am using Facebook PHP-SDK to design a login for my website. After suggestions, I have disabled IPV6, and changed the iptables to open ports 80 and 443. Currently my ...
0
votes
4answers
498 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
338 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 ...
11
votes
4answers
15k 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
453 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
199 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 ...