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.

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

Curl not closed when 204 No-Content and Transfer-Encoding: chunked through haproxy

Haproxy is terminating https connections and forwards requests to backend. When resource returns 204 No-Content and Transfer-Encoding: chunked the curl connection is not closed. When I call resource ...
2
votes
0answers
2k views

how to do an HTTPS request to an specific server?

I want to health check specific servers before adding them to a load balancer. The load balancer is just forwarding at the TCP level to the instances, the instances are handling the SSL handshake. The ...
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
0answers
954 views

curl request results in heavy load on the server

We consume an XML Datafeed by sending cURL requests to the provider's server. They do not allow us to cache, so each pageview is a new cURL request. Twice this year, our server has crashed with the ...
2
votes
0answers
457 views

How to use sitemap.xml to create a static mirror of a CMS

Is there a tool to create a static mirror of a content management system (CMS) that provides a sitemap.xml file? Ideally, I would point a tool like wget or curl to a sitemap.xml file and have it ...
1
vote
0answers
43 views

curl to https significantly slower than wget on centos7

Versions in question: Centos 7 Curl 7.63.0 (x86_64-redhat-linux-gnu) libcurl/7.63.0 NSS/3.36 zlib/1.2.7 libpsl/0.7.0 (+libicu/50.1.2) libssh2/1.8.0 nghttp2/1.31.1 I've got some strange behaviour ...
1
vote
0answers
35 views

Curl only uses specified OpenVPN interface if ran as root

I am using Ubuntu Server 18.04.1 LTS (Bionic Beaver). I run OpenVPN with redirect-gateway disabled because I don't want traffic to use it by default, only one specific application. This is the command ...
1
vote
0answers
41 views

Why same request has different response times?

I have an API (built with nodejs) and deployed on a kubernetes cluster using a docker image. For default route I simply return a Hello World QA! message. I am testing response times of this GET ...
1
vote
0answers
24 views

Getting different local-port value in tcpdump when using --local-port option in curl

I'm using curl command to send the traffic to the Server. In curl command, I'm using --local-port option. Below is the command: curl -v --interface 10.1.1.3 -b --local-port 10000 http://30.1.1.101/...
1
vote
0answers
350 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 ...
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 ...
1
vote
0answers
764 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 ...
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: ...
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 ...
1
vote
0answers
673 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 * ...
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 ...
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: ...
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
855 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 ...
1
vote
0answers
558 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 ...
1
vote
0answers
721 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 ...
1
vote
0answers
157 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 ...
1
vote
0answers
100 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 ...
1
vote
0answers
506 views

Bad HTTP Location: header with nginx proxying couchdb

I'm using nginx as a reverse proxy for CouchDB. I'd like to use a prefix for the proxy, e.g. http://[ip]:8080/proxy/testdb -> http://localhost:5984/testdb. I'm getting Location: headers in the HTTP ...
1
vote
0answers
1k 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 different....
1
vote
0answers
733 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 ...
1
vote
0answers
666 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 ...
1
vote
0answers
897 views

cURL not loading on Ubuntu 12.04

I have come across a very weird problem. My cURL PHP extension doesn't seem to be running. I have installed cURL using this command: sudo apt-get install curl libcurl3 libcurl3-dev php5-curl And ...
1
vote
0answers
245 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 ...
1
vote
0answers
7k views

CURL ERROR: Recv failure: Connection reset by peer - PHP Curl

I've posted a question yesterday on stackoverflow here but think this might be server related. I'm connecting using the PHP curl functionality to a server that then generates a PDF file and sends it ...
1
vote
0answers
204 views

What is PHP cURL and libcurl version relationship?

I'm running php with curl support on a mac. cURL in php works fine(ish) but I noticed an oddity reported by phpinfo(). It states that curl support is 7.19.7 But using the otool command, I get this: #...
0
votes
0answers
85 views

CentOS 7: curl and wget not working

My problem is that curl and wget usually fail to retrieve more than just the first part of any given file, and often nothing at all. Both have worked previously on the same server, and nothing else on ...
0
votes
0answers
26 views

Execute custom code when crontab fails

I am trying to post crontab error messages via cURL to Discord/Slack rather than email. Is there any way to do that? I have been searching about this, but I haven't found anything like it on google. ...
0
votes
0answers
52 views

How Does curl over HTTP Know Where to Respond

This might sound like a silly question that is probably just part of the HTTP protocol, but might be important to debugging an issue I'm having. We have some PHP code that uses the php-curl functions ...
0
votes
0answers
116 views

tls 1.2 handshake timeout docker container

I'm working on a fresh ubuntu 18.04.01 in which I installed Docker version 18.09.1, build 4c52b90 by following the official install guide. I'm experiencing a weird issue regarding TLS 1.2 On the host ...
0
votes
0answers
249 views

nginx and mTLS and curl, oh my

I am trying to configure client certificate verification (mTLS) in nginx and test it with curl. Important part of my nginx config: server { listen 443 ssl default_server; listen ...
0
votes
0answers
180 views

squid proxy dont load only one site , dont SSL VERIFY HOST

squid proxy don't load only one site, don't have a problem with other websites I think this problem from SSL VERIFY HOST on squid. I use this code on squid config but don't fix my problem: Source: ...
0
votes
0answers
135 views

Django (uwsgi) + nginx hangs on curl requests

I am trying to debug a problem where a request done with curl hangs. The website renders fine if I open it through any web browser. I can't find anything suspicious into the log files as well. I've ...
0
votes
0answers
472 views

what does curl stuck at “Trying <ip address>” indicate?

We have a fleet of beaglebone boards running Debian 7.9 that communicate with our server (an Azure App Service) over https. From at least one of these boards, most requests to the server timeout. When ...
0
votes
0answers
123 views

CURL over VPN to make API request

I'm trying to use CURL over a VPN rather than the public internet. To do this I am using this setting in the CURL request: curl_setopt($ch, CURLOPT_INTERFACE, "eth0:01"); The value eth0:01 comes ...
0
votes
0answers
29 views

Nginx SSL request process

I have a Nginx 1.10 with this 2 sites: site A: server { listen 443 ssl http2; listen [::]:443 ssl http2; ssl_certificate /etc/ssl/example.com/fullchain.pem; ...
0
votes
0answers
62 views

Add an IPv6 subnet to Ubuntu server

I'm trying to add an entire /64 ISP-provided IPv6 subnet to an Ubuntu server machine. I'd like to be able to use any IP I want with curl (perhaps using --interface <ip>) after the IPs are ...
0
votes
0answers
103 views

nscurl giving tls errors

I am trying to figure out a ssl error that happens when sending a request to the server. FYI, this error happens inconsistently. NSURLSession/NSURLConnection HTTP load failed (...
0
votes
0answers
34 views

Inconsistent curl starttransfer performance in Debian GNU/Linux 7.11 (wheezy)

I have created an API and hosted in windows IIS server. I checked the performance of the API on browser and its consistent ~200 ms. But when I try to access the API with curl on debian, it slows down ...
0
votes
0answers
231 views

Port is open and listening but is denying connections

Port is open and listening but is denying connections. When trying to CURL in terminal curl --data-binary '{"id":"curltext","method":"addrequest","params":{"amount":"3.14","memo":"test"}}' http://...
0
votes
0answers
3k views

curl.error: (35, 'error reading X.509 key or certificate file')

I created a certificate using this: openssl req -x509 -nodes -newkey rsa:4096 -keyout server.key -out server.crt -days 365 Then I run: curl -l --tlsv1.2 -E server.crt -v https://test-as.sgx....