Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [curl]

cURL is an HTTP client library and command line tool.

0
votes
0answers
511 views

How to avoid curl trying IPv6 name resolution

From a docker container when I try to curl 'another container name', curl first tries to resolve the name to IPv6. This causes few seconds delay because the web server is not reachable over ipv6. I ...
1
vote
1answer
1k views

php cURL not working

The php cURL extension on the Apache server I've inherited from my predecessor doesn't work. I'm using the following code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://www....
0
votes
0answers
1k views

Changing SSL-version for curl

I have been trying for hours to change the SSL Version for curl from NSS to OpenSSL because I have a web application that's dependant on it. I'm running RedHat RHEL 6.7 on a 64-bit system. I have ...
-1
votes
2answers
60 views

using Curl for Rest API calls - Authenication Failure

I have an authentication problem with a REST API Call with curl, I think its to do with the formatting of my curl input. curl -v https://api.ananthsdomain.com/version1/testaccount/test \ -H "...
1
vote
1answer
2k views

Utilizing TLS 1.2 on CentOS 5.11 for use with Paypal IPN [closed]

Our current web stack is installed on a CentOS 5.11 server with Plesk. We are using PHP 5.4, cURL 7.47.1, and openSSL 0.9.8e-fips-rhel5 01 Jul 2008. I am trying to run Paypal IPNs using code based off ...
1
vote
1answer
2k views

Updated cURL not taking effect in PHP

I have an application running through Docker, based on the official PHP Docker image. I've extended it to update cURL and get it working with nghttp2 and openssl, which is what I need for HTTP/2 ...
10
votes
1answer
24k views

Curl: unable to get local issuer certificate. How to debug?

I’ve got an odd problem. Updated my LAMP dev machine (Debian) to PHP 7. Afterwards I cannot connect to a specific TLS encrypted API via Curl anymore. The SSL cert in question is signed by thawte. ...
0
votes
1answer
1k views

Geotrust SSL certification issue

I have an issue with curl (Centos 6 env) does not recognize Geotrust intermediary certificate: * Trying 192.168.6.6... connected * Connected to composer.graymatter.co.uk (192.168.6.6) port 443 (#0) ...
-1
votes
1answer
1k views

404 header error instead of the correct 200

I have just updated a (dynamic) website by sftp/ssh and all the new pages have been considered as 404 error not found. Actually, all the pages, including the old pages which was overwritten. Also, ...
0
votes
1answer
766 views

Is there a default CAfile/CApath location for solaris openssl and curl?

I have already tried several locations and neither openssl nor curl recognize the certificate file I have placed there. I have tried these paths: /etc/certs /etc/sfw/openssl/certs /etc/ssl/certs /...
1
vote
2answers
2k views

Unable to install CURL on Docker Ubuntu image

I'm trying to install curl on ubuntu 14.04 in Docker image and the simple: sudo apt-get update sudo apt-get install curl will never work with the following output. It seems that curl installation is ...
1
vote
1answer
70 views

HTTP Header's not matching

Is there a difference between what headers php returns and what is set in nginx? When I run: curl -I mydomain.com I get as expected (I have keep-alive off) Connection: close But when I output the ...
-1
votes
1answer
512 views

Why does host+curl take longer than host alone and curl alone?

I asked this on networkengineering.se, and they suggested I move it here. I tried to test the speed of my website, so I used time curl "http://google.com" The result ended with real 0m15.589s ...
0
votes
0answers
443 views

Manual autodiscover implementation failing. Why?

I am managing a mail server, and would like to have my Outlook users be able to automatically set up their mail server information. Normally this is done with an autodiscover file. Here's how I ...
0
votes
1answer
1k views

Why is nginx giving 200 OK response , even though domain is not hosted on my server ? and how can i fix it?

i have hosted example.com on nginx web server at ip 123.123.123.123 and if i use curl with host headers like this from remote machine curl -v -H "Host: example.com" 123.123.123.123/ i get curl -v -...
3
votes
0answers
9k views

curl: (1) Protocol “https” not supported or disabled in libcurl

I've a CentOS6 vps on which O trying to access https url through curl it gives not supported error # curl https://google.com curl: (1) Protocol "https" not supported or disabled in libcurl Anyone ...
1
vote
3answers
16k views

Upgrade curl to latest on CentOS 7

I need to upgrade cURL on my VPS running CentOS 7. I'm gettings errors as: cURL Error(35): Cannot communicate securely with peer: no common encryption algorithm(s) I've used the answer given here ...
1
vote
1answer
588 views

Troubleshooting connectivity when curl returns 'empty reply' from a server on my computer only

For whatever reason, my computer (Mac OS X 10.11.1) cannot fetch a webpage from a website using curl when it works fine on other computers. Also ping works but curl doesn't: $ ping www.latex-tutorial....
1
vote
0answers
2k views

curl (7) a failed connection in docker

I'm using docker on ubuntu. cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=14.04 DISTRIB_CODENAME=trusty DISTRIB_DESCRIPTION="Ubuntu 14.04.3 LTS" I have this container: CONTAINER ID ...
0
votes
0answers
779 views

How to compile php and curl-extension with custom version libcurl?

I want compile php-5.6.15 with custom version of libcurl. Why? There was a bug with curl which makes some https requests failed. My distro's repositories contains just version with bug. So I guess I ...
1
vote
1answer
789 views

tcp retransmit via curl and netcat

I'm trying to setup iptables to cause realistic network failures between docker containers. On the server, I run both netcat -lk 1234 and an Erlang cowboy server. On the client I run clients: echo ...
1
vote
0answers
2k views

SSL with cURL vs. sudo cURL, wget, openssl

When using cURL as root, everything works fine: $ sudo curl -vvv https://test.example.org/ > /dev/null * Connected to test.example.org (1.2.3.4) port 443 (#0) * Initializing NSS with certpath: ...
0
votes
0answers
699 views

Curl Error Connection timed out

I have a website (www.example.com | 123.456.789), in that machine i only have 1 web app running. i am trying to use php file_get_content() to a file which in my own server (located on some file like /...
1
vote
0answers
388 views

Installing an intermediate cert on Debian 8 for curl/openssl connections.

I am trying to contact a url via php's stream_socket_client() command which is failing with no error code or msg. Does this use openssl, curl or something else? The site uses https and works fine from ...
1
vote
0answers
72 views

Curl hangs over 2599 bytes response for specific host, where could I investigate?

I have one server that curls other servers for somepage.php, is does it with over 8 servers now, but the curl doesn't work on only one of them, it simply hangs. Investigating it further, I noticed ...
1
vote
0answers
857 views

Apache timeouts and TCP retransmission

The documentation for the timeout directive in apache states that: When writing data to the client, the length of time to wait for an acknowledgement of a packet if the send buffer is full. But if ...
4
votes
1answer
7k views

why is curl to https not working

I can do the following without any problems: curl -u "username:password" http://www.example.com/exportfile.xml But if I try to use the same command to the https version of our site it fails curl -u ...
2
votes
1answer
6k views

Download an SSL certificate from a remote website through a proxy

I want a script checking my server's certificate. There are very good answers around here how to get this with openssl s_client or gnutls-cli, which works fine.... but NOT if you are behind a proxy! ...
1
vote
1answer
461 views

Which Ubuntu package has the CA for debian.neo4j.org (godaddy)?

The neo4j site shows that you should get their certificate using wget -q -O - http://debian.neo4j.org/neotechnology.gpg.key This, of course, could allow their certificate to be hacked. So, I really ...
2
votes
2answers
542 views

Building curl, httpd and others with custom openssl build, while avoiding default system openssl

I've been trying to upgrade some programs on an old Linux box (Debian 7.5 wheezy). I'd like to keep default system libs untouched and to add some custom builds alongside them. It works fine for most ...
0
votes
0answers
214 views

Server becomes unresponsive while under load

We have a server setup containing 2 webservers, a RDS MySQL cluster and a loadbalancer, on AWS. The webservers are running PHP and Nginx, and contains multiple services each. We have a service ...
2
votes
0answers
2k views

Import a P12 certificate into a NSS database (with an alias)

Here´s the deal... I have a personal P12 certificate generated by a certificate authority. I want to use it with CURL to access a protected URL. If CURL on CENTOS was compiled with openssl, I should ...
-2
votes
3answers
637 views

Is there a GUI tool to log and view outgoing CURL requests from a Linux server? [duplicate]

I've seen several similar questions - but none that truly answer the question. So here goes: PROBLEM: A script is being run on one of our servers that is making outgoing post (and other) requests ...
1
vote
1answer
516 views

APT-GET behind a proxy with Digest Authentication

I'd like to use apt-get (and other ubuntu tools) to download software and keep it updated. Unfortunately, my company has set a squid proxy to accept digest authentication only. I've seen somewhere (...
1
vote
1answer
7k views

Curl returning error 52 or 56 with REST API call spanning more than 5 minutes

So I have been trying to figure this one out for about a week now. Here is the run down: I use CURL in PHP to pull data from an API. As the response to the API call gets bigger (pulling over 15k ...
1
vote
1answer
4k views

Curl, lynx etc not accepting certificate locally but OK remotely

When I connect to my web server to view a site over HTTPS, I get the nice green EV thing in the address bar. When I use curl locally to connect, it complains about the certificate and dies. I'm aware ...
1
vote
0answers
559 views

cURL to my own server crashes apache server

I'm running a apache web sever on Ubuntu 14.04 LTS. I found myself in a situation where I from a php script on one server requested data from another php script on a second server. Both servers are ...
0
votes
1answer
9k views

Why I cannot connect to my website in HTTP using curl?

I have a web site @ www.eshipp.com, all the domain is secured by SSL so any HTTP traffic is redirected by NGINX to HTTPS equivalent URL. However it seems that some users are not redirected and then ...
-3
votes
1answer
29k views

Is there a way to get curl output into a file? [closed]

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
1answer
1k 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 ...
0
votes
1answer
414 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 ...
0
votes
0answers
968 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
1answer
362 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 ...
3
votes
2answers
8k 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 ...
3
votes
1answer
11k 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 libcurl-...
0
votes
1answer
29k 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 http://www.exampledomain....
3
votes
0answers
5k 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
1answer
712 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 (...
3
votes
2answers
16k 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 https://...
19
votes
5answers
20k 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 ...