cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

0
votes
0answers
453 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 ...
4
votes
2answers
3k views

Why are DNS lookups not respecting /etc/nsswitch.conf & /etc/host.conf?

I have an issue where hostnames are being looked up from DNS even though they are present in /etc/hosts. I have the following configured: /etc/host.conf: order hosts,bind /etc/nsswitch.conf: ...
0
votes
1answer
171 views

On my virtual EC2 instance, what is my IP will a webpage detect if I curl it?

I have one small server on EC2. Let's say I cURL facebook.com. What IP will facebook see as the "client address"? Is it random?
0
votes
1answer
713 views

How to update curl version on ubuntu 8.04?

On my system 8.04, curl 7.18.0 is installed: curl --version shows: curl 7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.1 Protocols: tftp ftp telnet dict ldap ldaps ...
1
vote
1answer
133 views

Stange stream of HTTP GET requests in apache logs, from amazon ec2 instances

I just had a look at my apache logs, and I see a lot of very similar requests: GET / HTTP/1.1 User-Agent: curl/7.24.0 (i386-redhat-linux-gnu) libcurl/7.24.0 \ NSS/3.13.5.0 zlib/1.2.5 libidn/1.18 ...
-1
votes
1answer
257 views

Perform HTTP request through non-default gateway (CURL? WGET?) [closed]

I have two ISPs /two routers on my LAN with Windows boxes. Switching default gateway (per PC) works fine, so I can choose my outgoing traffic from particular PC to be initiated from whichever ISP I ...
1
vote
0answers
115 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 ...
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 ...
1
vote
1answer
3k views

SSL error curl/wget unknown protocol/wrong version number

I've been trying to use local hosted https urls in command line/cron jobs and i get those errors. curl output is similar. The same commands, when used in other servers works perfectly. Default ...
0
votes
1answer
81 views

Network request intercept preventing local connections

I'm experiencing a really weird issue on my Ubuntu 10.04 web server where something appears to be intercepting my network requests. Most importantly it's preventing me from performing local ...
0
votes
1answer
332 views

curl fails to take self signed certificate

I've installed apache 2 server with self signed certificate.My browser is showing 'It works!' when I tried to connect to the sever. But from an application when I issued cur_easy_perform() the call ...
2
votes
5answers
4k views

Executing script remotely with “curl | bash” feedback

I'm working on a platform that uses a lot such commands: ssh login@server.com 'curl http://some_server/script.sh | bash' This is really clean and handy to execute scripts remotely, however, I don't ...
0
votes
1answer
290 views

Limiting IP choice from CURLOPT_INTERFACE

I have a server with 6 ip addresses added via cPanel. I'm having troubles limiting the IP address my clients can use as an outgoing IP address in their PHP script. Some of them are running proxies and ...
0
votes
1answer
552 views

libcurl Reporting Different Version Between Commands

I previously had cURL 7.22.0 on Ubuntu 12.04 Server.. but I now need to upgrade to cURL 7.30.0. I've done the following to compile this version for Ubuntu: wget ...
0
votes
1answer
171 views

Executing cURL upon Git Push

I'm very new to running a Git server, and I needed to trigger a Jenkins build upon pushing to Git. A tutorial says to do this command: curl http://[jenkins]/git/notifyCommit?url=[job] but it ...
0
votes
1answer
1k views

How to send HTTP request issued by cURL through VPN?

Please excuse me for (probably) the noob question, but I am very new to Linux networking. I've already spent a few days searching the Internet for an answer to my question, but was unable to find one, ...
0
votes
1answer
366 views

Check whether CDN is working or not

Is there any way to find whether the static content is being served by CDN or not. Using curl, can i find whether the static file is being served by CDN or by the webserver.
1
vote
1answer
134 views

SSL with authentication without encryption

Is it possible to setup lighttpd server and curl client so that both the client and the server verify each other's self-signed SSL certificate but the file is downloaded without SSL encryption? How ...
0
votes
1answer
2k views

Get a URL with variables via Linux Command Line

Sorry if this seems to be a very simple command, but I have been searching for hours without any solutions and exhausted my very limited knowledge of Linux. :-) I need to use some command to process ...
0
votes
1answer
816 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 ...
1
vote
2answers
60 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
179 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
588 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
217 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
870 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 ...
1
vote
2answers
651 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
7k 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
670 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 ...
6
votes
4answers
22k 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
644 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
534 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
333 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
838 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: ...
12
votes
2answers
15k 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
441 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
904 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
6k 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
173 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
2k 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 ...
5
votes
2answers
5k 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
239 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
597 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
702 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
651 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
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
5k 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 ...