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.

1
vote
1answer
640 views

curl: (25) Failed FTP upload: 553 to vsftpd docker

I'm running you container and try to send files using curl but it fails. Running the container export FTP_USER="test" export FTP_PASSWORD="test" docker run \ --name mock_ftp_server \ --...
1
vote
2answers
783 views

php5.6-fpm curl stops working (Couldn't resolve host)

All of a sudden our Ubuntu php5.6-fpm server has stopped working with curl requests. Here is what i have found: Works when ran from the console php test.php. Works via wet from console wget -qO- ...
0
votes
0answers
13 views

Crontab curl response time to text file [duplicate]

I am trying to get the response time of a server so for example I am using below curl command I got of the internet curl -w "@curl-format.txt" -o /dev/null -s http://wordpress.$ The curl-format.txt ...
0
votes
0answers
4k views

curl: (60) server certificate verification failed

I am getting this error message when I try to use curl on Ubuntu 16.04: curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt I have downloaded cacert.pem ...
1
vote
1answer
710 views

NGINX workers not enough

I'm not very familiar with nginx workers so I'll need some help here. I have two sites on one server http://example.com http://example-second.com Second one is used to make API call through first ...
1
vote
1answer
4k views

Configure: error: Curl library not found on centos 7

I want to install zabbix 2.4.5, but when I type: ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 I get some problem: Configure: ...
0
votes
0answers
374 views

Enable support for HTTP methods in an Apache HTTP Server

I am sending a PUT request using curl and getting a 405 Method Not Allowed status code. I commented out the <Limit> directive in httpd.conf file but still seeing this error. CURL request ...
0
votes
3answers
2k views

CURL connection to domain name pointed at itself gives “Connection Refused”

I have a PHP website on CENTOS which needs to get the contents of its own homepage in order to cache it. To do this I need to use the full URL of it's own domain name that resolves to itself. I tried ...
1
vote
1answer
734 views

cURL behaves differently with respect to SSL certificates when using -v (verbose) flag?

Using Ubuntu 16.04, curl version 7.47.0 I'm trying to debug an SSL certificate issue, and seeing odd behavior when using curl. When I just run: ubuntu@ip-172-30-0-81:~$ curl https://myapp.com/hello ...
1
vote
1answer
621 views

start time in openssl s_client

After running the openssl s_client command to connect to a remote host. The following output was shown on the terminal. Can somebody please help me understand the start time in this log. What does it ...
0
votes
1answer
4k views

How do I “override” Server response header on a ReverseProxied website?

I am running a couple of websites on different server on a local network. All websites are Proxied via one server where HTTPS is added and the trafic is monitored. Currently, if someone makes a: ...
2
votes
1answer
3k views

curl not using cert from /etc/ssl/certs/ca-certificate.crt

When I try following curl devendermishra@myhost:~$ curl https://iam.endpoint.com curl: (60) SSL certificate problem: self signed certificate More details here: http://curl.haxx.se/docs/sslcerts....
1
vote
0answers
349 views

NoProxy only for main domain - cntlm

I am running an ubuntu in a corporate firewall with cntlm. For working with my local dev sites I have to insert then into the NoProxy like so *.local. I have a problem with a sith that I running ...
-2
votes
1answer
534 views

Why was apache restart required after updating curl version?

I have a server running PHP using mod_php in Apache. Apache is using the Prefork MPM. I had some SSL errors due to using an old version of CURL. I ran the command 'sudo yum update curl'. It ...
1
vote
1answer
1k views

Debugging curl FTPS connection, using Client Authentication certificates (OpenSSL)

(Moved from StackOverflow) I've been asked to setup an FTPS connection, using a Client Authentication certificate. I'm the client, connecting to the server. I'm on a Windows 7 workstation, behind a ...
0
votes
1answer
498 views

Debian 8 - Problems with curl / php and with compiling from sources

I try to move an php application to a new server. While on the old server a curl php call works correctly on the new server I get the error: {"error":"Referrer Header Required"} As both servers ...
0
votes
1answer
951 views

Why is curl requests from terminal always gives X-Cache-Status: MISS

I have set up nginx reverse proxy and added caching to it using nginx caching. I can verify whether the requested copy is cached or not using added header. add_header X-Cache-Status $...
1
vote
0answers
2k views

Google Firebase Cloud Messaging not in ca_root_nss?

We are trying to migrate our push services to Google Firebase Cloud Messaging. On the development machines (that run linux) everything is fine, but in the integration system (which runs on FreeBSD ...
2
votes
1answer
3k views

Can't curl a linked container in Docker

I don't have a complex setup. 2 containers, one for my application and one for my API. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
0
votes
1answer
1k views

PHP cURL HTTP2 support

I use Ubuntu 14.04.3 LTS on my server and run php5-fpm. I need to send a HTTP2 request via curl in php. I used this tutorial to install curl/libcurl: https://blog.cloudflare.com/tools-for-debugging-...
0
votes
1answer
561 views

error 404 in curl/file_get_contents/get_headers: “failed to open stream”

After isolating my problem, I am testing my API with the following code: $url = 'http://example.com/api/myendpoint; print_r(get_headers($url));die(); Sometimes it does works, but sometimes ...
1
vote
0answers
762 views

Is it possible to expose an HTTP proxy on localhost via ngrok?

I have tinyproxy installed on localhost (I also tried squid and failed similarly). It runs on port 8888. This works: curl -x localhost:8888 http://www.google.com And I see output in the tinyproxy ...
13
votes
1answer
14k views

Disable SSL check rpm

When trying to run any rpm command I get the follow error. I am not sure why i am getting a curl error but i have tried many different options which have all failed. Running CentOS7 and behind a ...
2
votes
2answers
543 views

curl GET list of files restricted to 1000

There are more than 1000 files in a storage server account and when I use curl to display the list of files, output is limited to only first 1000. Just to test, I had deleted a file showing up in ...
1
vote
1answer
556 views

POST terminal output to cURL

I am trying to post the output of uptime to cURL post on a HTTPS address The problem is that I must send the output preceded by "message=" in the -d option. Each time I run the below command I get : -...
1
vote
2answers
16k views

Unable to establish SSL connection with wget

I am trying to execute : wget https://app.adroll.com/api/v1/export/all_campaigns_report?advertisable=T4ZPAGYESJEZZMCCBVEMHK&reports=AllCampaignsSummary,AllCampaignsChart,AllAds,AllCampaignsSites&...
0
votes
0answers
1k views

Unable to curl one docker container from another 'No route to host'

I have a script inside app2 that performs a curl against app1 and fails with, curl: (7) Failed connect to 10.30.20.37:9009; No route to host I have the following docker-compose file, version: "2" ...
0
votes
1answer
674 views

What are the possible causes of a curl protocol error?

I'm getting the following error with curl: # curl -vvvv https://192.168.99.100:8501/ui * Trying 192.168.99.100... * Connected to 192.168.99.100 (192.168.99.100) port 8501 (#0) * WARNING: using IP ...
-1
votes
1answer
23 views

How to set some kind of authentication for forword proxy in apache2?

I have a VPS and have configured it to run apache2 as a forward proxy: <IfModule mod_proxy.c> ProxyRequests On <Proxy vps_ip:80> Order deny,allow Deny from all Allow from all </Proxy&...
2
votes
1answer
12k views

How to build curl for TLSv1.2 support?

I am trying to build curl on my RHEL 6.x box as the existing version does not support TLSv1.2. However, no matter what option I select, it always ends up with the following error : configure: WARNING:...
1
vote
0answers
2k views

curl SSL protocol error in connection to shbr-staging.surescripts.net

I am trying to connect to: shbr-staging.surescripts.net/ Here are the steps that I have followed: Step 1: I generated a private key $openssl genrsa -des3 -out sc-private.key 2048 passphrase: ...
0
votes
1answer
832 views

Weird 302 response from apache server

I have this situation that utterly baffles me: The setup a newly setup server (centos 7, apache, mysql, nothing fancy) that hosts a simple php app that I need to interact with from my main app on ...
5
votes
1answer
40k views

What does “tlsv1 alert unknown ca” mean?

I am trying to do a curl request using a client certificate like so: curl -E my.pem https://some.site And I get the following error message: curl: (35) error:14094418:SSL routines:SSL3_READ_BYTES:...
2
votes
2answers
9k views

Upgrading curl on centos 6: libcurl-7.50 requires libnghttp2

I am trying to upgrade curl but keep on getting this error: Package: libcurl-7.50.0-1.1.cf.rhel6.x86_64 (CityFan) Requires: libnghttp2.so.14()(64bit) I am not sure how to get this ...
-1
votes
3answers
569 views

Can not connect to the host itself

Well, the problem is simple. I have the site based on apache and trying to execute cron job at this site from the same server. Let's say my site http://example.com and cronjob is /usr/bin/curl http:/...
1
vote
0answers
714 views

OpenSSL Header Version != OpenSSL Library Version affecting HTTP/2 for APNS

i have this weird combo on my openSSL on WAMP. My windows command prompt openssl version returns the library version -> OpenSSL 1.0.2h 3 May 2016 while my php curl call -> echo "openssl version text:...
1
vote
0answers
1k views

Troubleshooting connection timeouts and SYN_RECV

My DigitalOcean droplet fails very often to connect to different resources, like making a REST call with curl or establish SSH connection. Every time it happens, I can see sockets with SYN_RECV state ...
0
votes
1answer
618 views

Why do my two live servers not run this curl command, but my local test server does?

I have three servers. Two are live servers hosting web sites for the internet. One is a local testing server, not visible on the internet at larger. I am trying to run a PHP script that posts to ...
1
vote
2answers
2k views

Why can't curl retrieve the SSH host key (key: <none>)

I've been using curl (by means of git-ftp) for a while, and passing only username and an sftp URL. Authentication would always work implicitely through publickey. Suddenly curl will not connect ...
3
votes
1answer
2k views

LetsEncrypt: Unknown SSL protocol error in connection

I have a host with LE certificate and it works well in a browsers, but I still can't connect using curl, openssl, wget, POST (libwww-perl): curl # curl -v -3 https://example.com/ * Hostname was NOT ...
0
votes
1answer
335 views

self-curl blocked by iptables

I can't figure out which rule is missing to make this happen... # iptables -Z ; curl -v -k --connect-timeout 2 http://www.myhost.com/ ; iptables -L -v * Hostname was NOT found in DNS cache * Trying ...
1
vote
1answer
891 views

PHP curl broken

Curl seems to hang when making calls. This is breaking wordpress/wp-admin sites & the twillio helper library used for IP-SMS. This issue appeared after installing vsftpd and creating new users. ...
6
votes
1answer
39k views

curl (56) Recv failure: Connection reset by peer - when hitting docker container

From an AWS ec2 instance (which runs docker), I am trying to curl my docker container-hosted web service. Given: [ec2-user]$ docker ps CONTAINER ID        IMAGE                                       ...
1
vote
0answers
671 views

curl NSS Error -12156 ssl connect error

I'm seeing the following error while running cURL on an AWS server: curl -v --insecure --disable-epsv -l ftps://foo.com/ --user "foo:bar" * Initializing NSS with certpath: sql:/etc/pki/nssdb * ...
0
votes
1answer
677 views

parse server file upload

I've created an instance of parse server. I can get data from the collection no problem, but I'm stuck as to how to upload text files. I'm running curl from windows to upload a simple backup log. ...
0
votes
1answer
613 views

PHP CURL does not support RTMP protocol

I am trying to fetch RTMP url using PHP CURL, but unfortunately php curl says >Protocol "rtmp" not supported or disabled in libcurl I have installed rtmpdump and upgraded CURL to 7.47.1 latest stable ...
0
votes
1answer
437 views

nginx seems to use wrong php service

i wanted to increase my max. upload file size and install cURL to php5-fpm today. I have installed a LAMP stack on my Ubuntu 14.04. But the changes doesn't take any effect after reloading/restarting ...
1
vote
1answer
2k views

GET to NGINX reverse proxy works but POST gives me a 502 Bad Gateway Response

I am using NGINX as a reverse proxy and just put up a new service written in Go. The service has two endpoints GET /tracking/ping POST /tracking/customer In NGINX, I am using the following to ...
1
vote
1answer
651 views

How do I assign the result of curl to a systemd variable?

I am using an Amazon Web Service server, and am trying to setup a systemd job that takes as an input the AWS external IP retrieved by curl. [Unit] Description=My example with AWS external IP Wants=...
0
votes
0answers
509 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 ...