cURL is an HTTP client library and command line tool.

learn more… | top users | synonyms

3
votes
3answers
9k 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 ...
0
votes
1answer
4k 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
29 views

Getting can't resolve host when curling dependencies in systemd

I'm using CoreOS with cloud-init and I'm trying to curl for flannel. I have a unit file as such: [Unit] Description=Run flannel Documentation=https://github.com/coreos/flannel Requires=etcd2.service ...
-5
votes
1answer
27 views

Is there a way to get curl output into a file?

Here is the script on the Linux: if [ -s $WORK_DIR/newerfile ] then curl -k -T $WORK_DIR/newerfile -u username:password ftpssl.example.bank/inbound fi I want to get the results of the curl ...
0
votes
2answers
1k 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
50 views

Fedora 22 DNF timeout

I just installad Fedora 22 and DNF (yum's replacement) is performing terrible. 9 out of 10 request fails out of timeout, with random effect specifying IPv4 or not. The problem seems to be that DNF ...
3
votes
1answer
2k 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
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 ...
-2
votes
0answers
27 views

echo text after curl command on same line [migrated]

#!/bin/bash echo "$(curl -s -I https://google.com|grep Server)" abc returns: abcer: gws and bash -x shows: ++ grep Server ++ curl -s -I https://google.com ' abco 'Server: gws abcer: gws but echo ...
0
votes
1answer
1k views

Call to undefined function curl_init() [closed]

I'm running XAMP on Windows XP Pro. I've enabled curl in PHP.INI en restarted my machine and Apache. extension=php_curl.dll Still I get the following error in my php script: Call to undefined ...
0
votes
0answers
44 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 ...
-2
votes
0answers
40 views

How to enable GSS-Negotiate?

Please tell me how to enable the GSS-Negotiate in Curl OS Debian 8? The current build such: curl 7.38.0 (x86_64-pc-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1k zlib/1.2.8 libidn/1.29 libssh2/1.4.3 ...
1
vote
2answers
569 views

Curl on Fedora does not accept Cloudflare https

Using curl on a clean vanilla Fedora 21 to retrieve a site hosted via the cloudflare https service gives an error: curl https://www.opencpu.org >> curl: (35) Cannot communicate securely with ...
2
votes
2answers
55 views

Sniff outgoing traffic on my server on a SSL channel

Im executing a CURL command on a php application running on my nginx server (centOS). The end point is a https address so the outgoing traffic is of course encrypted. I want to see the network ...
1
vote
1answer
141 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 ...
-1
votes
1answer
29 views

yum does not contain the package: libcurl [closed]

I am in Redhat 5 and the following packages are not found yum -y install libcurl libcurl-devel Loaded plugins: security Setting up Install Process No package libcurl available. No package ...
0
votes
1answer
15 views

Troubleshooting Curl Timeouts

I run a SaaS monitoring service. Our standard integration example is to make a curl request to a special URL we provide. We have an intermittent issue where a user is hitting a 10 second curl timeout ...
0
votes
1answer
169 views

“curl: (7) couldn't connect to host” only on www. subdomain [closed]

I'm running a server with Centos 6 and Plesk 11. I have curl installed and working on all domains except on a domain that has a www. as preferred domain. [root@www]# curl ...
3
votes
0answers
78 views

CURL PHP can't resolve host [closed]

I'm trying a php script that is doing requests with CURL. But I get the error Couldn't resolve host 'example.com' $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER , true); curl_setopt($ch, ...
0
votes
0answers
103 views

libcurl.so.4 no version information available

curl: /usr/local/lib/libcurl.so.4: no version information available (required by curl) This is the error I am getting. This error has not stopped any scripts or apps from running or preforming their ...
0
votes
1answer
93 views

Does CURL cache requests?

This is a pretty long question, so bear with me. I wanted to stress my Akamai Server logged in from an AWS instance. So, I started running ab benchmark. However, they seemed ridiculously fast to ...
0
votes
1answer
55 views

Using curl with cookies

I hope someone can help me out on this one. I have been trying this for a while now, with all sorts of variations and cannot seem to get this to work. I am trying to script a way to log in to ...
2
votes
1answer
2k views

Issues with the SSL versions used by Curl and Python SSL lib

TL;DR I'm trying to reach an URI which only takes SSLv3. If I try to access it with curl or Python requests (which uses the ssl module) it doesn't work (different errors). Some longer explanation ...
-2
votes
1answer
108 views

Compile curl with openssl

I'm trying to compile curl with openssl support and though I've tried for hours I still cannot figure out what I'm doing wrong. Here's what I did: compile openssl like this: cd ...
0
votes
0answers
53 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
69 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 ...
1
vote
0answers
62 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 ...
0
votes
1answer
72 views

Upload large files with curl without RAM cache.

I'm using curl to upload large files (from 5 to 20Gb) to HOOP based on HDFS (Hadoop Cluster) as follows: curl -f --data-binary "@$file" "$HOOP_HOST$UPLOAD_PATH?user.name=$HOOP_USER&op=create" ...
0
votes
1answer
564 views

Enabling TLS1.0? Cannot communicate securely with peer: no connection encryption algorithms

For over a year I have been running a photo based website that allows customers to order prints, which are subsequently fulfilled by a printing company. Orders are posted in XML format to a ...
0
votes
0answers
32 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: ...
4
votes
1answer
6k views

How to log outgoing http requests from PHP + cURL?

I have a PHP script set up that makes cURL requests whenever an action is performed on a site. The problem is that the information is being POSTed twice whenever the action is run. I need to work ...
1
vote
1answer
264 views

curl 7.21 does not correctly call a host with a host header on https

We found out that calling a host like following using curl 7.21 or 7.24 does produce an error in the apache config (we have multiple SSL Vhosts!). Whereas the same command runs smooth with curl 7.34 ...
1
vote
1answer
73 views

cURL to localhost gets dropped by iptables

I'm trying to use cURL on the shell to connect to localhost. I'm using curl http://localhost:80 to connect. Unfortunately, it's being blocked by iptables. Here's the error in the iptables log for why: ...
1
vote
1answer
938 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, ...
0
votes
0answers
189 views

CURL & SSL failing on a specific site [duplicate]

I can't get curl to download https://www.sicdm.caixa.gov.br/cadmut/login_internet_form.do on a CentOS 6.2 server. The command curl -v -k -3 ...
0
votes
1answer
253 views

PHP cURL call returning error 56 with NSS error -12195

I have an internal server (internal to my network) to which I make a REST API call from my external server. I don't know if it helps but the external server is running php 5.3.6 with cURL 7.19.7. To ...
4
votes
2answers
640 views

Faster way to ping URL than curl [closed]

What would be the fastest way to check whether the specified URL is working? (responding in OK http status code)? For now I'm using curl, but I have bunch of URLs to test in a loop, so I'm looking ...
2
votes
1answer
59 views

How to check SSL connectivity between certificates installed on two different server

Suppose there are two organizations which share information with each other. Every organization installs SSL certificate in their application server and provides the same certificate to other ...
0
votes
1answer
235 views

Compile php with latest openssl and curl

I am trying to compile php 5.4.36 with latest curl and openssl (1.0.1l), i have compiled openssl into a separated folder My system is CentOS. When i try to compile php with ./configure ...etc... ...
-1
votes
1answer
73 views

cURL doesn't work when served by Apache

Getting "Cannot resolve host" as a cURL error within a PHP script using a hostname. IPv4s work fine though. Running cURL at a hostname via command line works.
2
votes
1answer
1k views

Do I need to recompile PHP to make use of CURL API?

I have both Apache and PHP set up manually, albeit the latter without CURL. There is this jungle of instructions and explanations on extensions for PHP. I have a very straightforward question - what ...
2
votes
1answer
269 views

Can't access domain internally via public IP address [duplicate]

I have a dedicated server running Proxmox and a VM inside Proxmox running Debian 7 (Wheezy). As I only have one IP address, I'm using iptables to forward ports to the VM. My ...
2
votes
3answers
75 views

HTTP POST request using Curl: why nothing works?

I want to submit a form of with the following information: <form enctype="mutlipart/form-data" method="post" action="/command"> <input tyep="submit" value=" Generate Snapshot " ...
1
vote
1answer
165 views

Does exist a curl equivalent command in routeros?

Just starting with routeros and after searching the official docs just fetch appears I need to do a POST request to REST API but I cannot find any curl like command. Is it possible to install curl ...
1
vote
0answers
61 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 ...
3
votes
5answers
6k views

Curl development headers with SSL support for Phusion Passenger 3

I'm trying to install phusion passenger nginx module, but it fails # passenger-install-nginx-module * Curl development headers with SSL support... not found ... yum install curl-devel Setting up ...
1
vote
0answers
45 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 ...
0
votes
0answers
236 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
1answer
1k views

Error when installing curl debian squeeze [closed]

I have set up an [ISPconfig][1] server and am now trying to install curl. I'm using apt-get to install php5-curl and it seems to be throwing up an error. After I press "y" to accept the install it ...
-1
votes
1answer
74 views

how to check if openvpn is active

i am runnning multiple openvpn instances each connected to different servers let's assume there are 3 and i am using a simple php script with this command system('openvpn config1'); system('openvpn ...