cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

0
votes
4answers
1k views

How to enable PHP Curl on linux machine using FTP only

I only have access only to php.ini file and I want to be able to add curl extenssion to my linux machine. I don't have access to terminal. I tried adding: extension=curl.so but it doesn't ...
0
votes
1answer
4k views

How to install cURL with openssl on ubuntu server?

I am having a problem with cURL here. My localhost has curl with openssl enabled, and thus my php code works fine. On running phpinfo() I get the following -- curl cURL support enabled ...
0
votes
1answer
2k 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 ...
0
votes
1answer
23 views

IIS server, using browser I get 200 response - curl I get 302 response

When I use a browser (chromium or firefox) when accessing a page I get the expected results - 200 responses and it displays the information I was expecting. When I use curl, I get a 302 response: $ ...
1
vote
3answers
895 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: ...
6
votes
2answers
6k 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
1answer
692 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
3answers
9k 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 ...
1
vote
1answer
1k 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. ...
0
votes
1answer
715 views

How to fix Apache from crashing with PHP+Curl on an SSH 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
1answer
44 views

curl: (35) SSL connect error

Trying to make a curl https request to Twitter API and get this error. I've tried from another server and it works with no problem. Does anyone know the reason for this error? [root@webscoming ...
2
votes
1answer
36 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
2answers
3k views

How to troubleshoot connectivity when curl gets an *empty response*

I want to know how to proceed in troubleshooting why a curl request to a webserver doesn't work. I'm not looking for help that would be dependent upon my environment, I just want to know how to ...
0
votes
1answer
879 views

curl installation and upgrade

On a centos 5.7 machine we had curl 7.15 installed . We also have PHP installed in it as some of the PHP libraries are linked to curl. We wanted to upgrade curl to 7.19 but yum update was failing . ...
0
votes
2answers
27 views

Is there a way to direct a HTTP server to upload file to the other HTTP server? [closed]

In my project, I need to do this: server1 ---http-download (curl)---> my pc ---http-upload(curl)---> server2 This is obviously duplicating traffic. I wonder if there is a method to direct ...
1
vote
2answers
87 views

PHP - does curl run asynchroniously on my system? [closed]

I'm building a web app. I have a database of books indexed in ElasticSearch and REST API written in PHP. In the app, there's a search box, where I type a name of the book and JS script calls the ...
1
vote
1answer
54 views

How do I get cURL errors to go into the correct log file?

I have a website running using Apache 2.2.22, PHP 5.3.10, and cURL 7.2.00. The relevant portions of the apache config is below, and you will notice that errors are sent to www.example.com_error.log. ...
1
vote
1answer
24 views

curl is giving wrong result via ssh

Curl is working fine on the node itself: [ec2-user@smokebase1 ~]$ curl -s -I --retry 3 --header 'Host: smoke-base.dev-test.com' ...
1
vote
3answers
2k 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.
1
vote
0answers
47 views

Publicly available black list for web servers [closed]

I'm a bit surprised to find that there really aren't any publicly available RBLs for web servers. Yes, there's project honeypot but you have to hit their API in realtime in order to check a given IP ...
0
votes
2answers
746 views

PHP/cURL/Fedora issues resolving hostname possibly a DNS problem?

I have the following simple test script for cURL/php on a FC12/apache server that has PHP 5.3.2, cURL v7.19.7 (according to phpinfo()): $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, ...
2
votes
4answers
1k views

Install Fedora Source package on RHEL / CentOS

I'm attempting to upgrade curl on RHEL / CentOS machines. I've found what seems to be the appropriate source packages in a number of repos. (ie, ...
-1
votes
1answer
104 views

What does “Server ****** is not blacklisted” means in curl verbose output?

Why should the server be blacklisted ? By curl or another program ? How server can get blacklisted ? Is it server or program dependant ? Is this the IP address that get blacklisted, or the name ...
4
votes
3answers
8k views

how do I get curl to save a file to a specified directory? [closed]

I'm trying to get curl, using a script, to download a file and save it to a certain directory. I got it to download but I dont know how to get it to a certain directory from a script. It usually just ...
0
votes
0answers
615 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 ...
0
votes
3answers
72 views

Is it possible to use curl to accurately stress test a site that has lots of javascript?

I have a web site that has lots of javascript but simple html. I want to try simple stress tests with curl. Is that possible? If I just curl the site I get HTML. So making tons of curl requests won't ...
0
votes
0answers
81 views

cURL NSS error -12286 SSL_ERROR_NO_CYPHER_OVERLAP

Using cURL 7.36.0 (x86_64-redhat-linux-gnu) on EC2 Amazon Linux, I can't connect to certain websites (not all) using HTTPS and receive the above error. From researching the issue I have learned that ...
1
vote
0answers
126 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 ...
0
votes
0answers
130 views

Curl get of .cgi file, Always 504 gateway time out

I have a ip cam and I use Get method to switch on the alarm. When I use browser everything is ok http://da***.com:808/set_alarm.cgi?user=***&pwd=***&motion_armed=1" If a try to use this ...
1
vote
2answers
680 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
0answers
107 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 ...
3
votes
2answers
7k views

How can I capture output from LFTP? (Output not written to STDOUT or STDERR?)

I would like get access to progress information from lftp. Currently, I'm using curl like so: curl http://example.com/file -o file -L 2> download.log This writes curl's progress information to ...
-4
votes
1answer
41 views

Killing a bash sh script [closed]

I made an .sh file load.sh which has (almost) unlimited loop of curl requests. I run this as $ bash load.sh. Now it just keeps running the loop. I can't cancel its execution. It keeps running. I ...
0
votes
1answer
43 views

Curl pressing enter or ctr+c in order to have the right response [closed]

This is a script that checks my current ip on this site: http://myip.dnsdynamic.org/ and pick the response and calls an API in order to update my dynamic ip. Here the script: curl --user ...
0
votes
0answers
61 views

VPN route works for browser, but not for Curl

I am using "Cisco AnyConnect Secure mobility Client" to set up a VPN connection. This works just fine for connecting web browsers, but when I tried doing the same connection with Curl I get: About ...
0
votes
0answers
62 views

Tar backup to webdav server: how to split the output file using stdin?

I need some advice on storing a tar file to a webdav server. I'd like to make automated backups of my VPS, however the available space is limited so I can't store the backup before uploading it to the ...
0
votes
1answer
52 views

Protect public directories from download via wget and curl

My users upload their profile images and I save them in a public folder. The file names are not predictable (they are based on md5 hash of user id with salt). When someone views the user's profile, ...
3
votes
2answers
1k views

OpenSSL issues in Debian Wheezy

I don't know what is exactly going on but I noticed that curl couldn't get secure pages without adding extra switches. ~# curl -v https://api.dreamhost.com * About to connect() to api.dreamhost.com ...
0
votes
2answers
94 views

Cannot curl a file host through apache2

I am trying to download a file using curl from a machine running apache2. My site (000-default) configuration looks like this: <VirtualHost *:80> DocumentRoot /home/user/files/ ...
0
votes
1answer
105 views

Issue installing gcc & curl-devel on Centos OS 5.6

I'm trying to install gcc and curl-devel on CentOS 5.6 (64 bit) server. The command I'm using is: yum install gcc \ curl-devel After running the command it says: No package gcc available. ...
1
vote
0answers
80 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 ...
0
votes
2answers
394 views

SSL certificate error connecting to github.com

Starting today (or within the last few days) I've hit an SSL error when trying to connect to github.com (e.g. to clone a repository). This is a legacy server running Red Hat 4.1.2-33. Here's what it ...
1
vote
1answer
2k views

Root cause of “curl: (56) SSL read: errno -5961” errors

I was evaluating some SSL failures, and noticed that when I use curl to one of the failing sites, I got curl: (56) SSL read: errno -5961; however, my google queries for that error didn't show the ...
7
votes
3answers
17k views

Ubuntu 10.04/CURL: How do I fix/update the CA Bundle?

I recently upgraded our server from 8.04 to 10.04, and all the software along with it. From what I've found online, it seems that the new version of CURL doesn't include a CA bundle, and, as a ...
0
votes
1answer
1k views

SSL23_GET_SERVER_HELLO:reason(1112) issue curl 7.25.0

Please consider two curl commands: curl -v --ssl https://example.com * About to connect() to example.com port 443 (#0) * Trying 10.20.30.40... * connected * Connected to example.com (10.20.30.40) ...
3
votes
0answers
85 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 ...
0
votes
1answer
68 views

Command line tools to monitor POST/GET requests of a loaded website

When I load a website with Firefox and open up the Network Profiler, I can see all the POST and GET requests the site is making. I would like this functionality from the command line. Does any one ...
2
votes
0answers
147 views

Unable to load Curl extensions

I am getting this line in my error_log PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/php_curl.dll' This is what I have done: 1. ...
1
vote
2answers
904 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 ...
0
votes
1answer
81 views

curl lot loaded after adding SFTP support

I installed Tartarus, and since my current curl didn't have SFTP support I've done this . Tartarus worked fine but I started to receive mails: PHP Warning: PHP Startup: Unable to load dynamic ...