Questions tagged [curl]

cURL is an HTTP client library and command line tool.

Filter by
Sorted by
Tagged with
0 votes
1 answer
12k views

curl: (28) Failed to connect to X.X.X.X port 80: Connection timed out

I'm getting this error: curl: (28) Failed to connect to X.X.X.X port 80: Connection timed out When I run this: curl X.X.X.X I'm curling a specific IP address and it fails on both port 80 and 443. I ...
ShadowAccount's user avatar
1 vote
0 answers
87 views

How Linux kernel selects the source IP of outgoing data packets?

I have multiple IP addresses assigned to a network interface, each corresponding to a different outbound IP. :~# curl --interface 112.73.59.255 ip.sb 157.119.73.25 Using the above command, I ...
鱼鱼鱼三条鱼's user avatar
0 votes
1 answer
200 views

Prometheus Blackbox http_2xx returning 403 since webserver migrated to StackCP

I had working Prometheus Blackbox Exporter http_2xx checks monitoring various web servers. Then the web hosting provider migrated from cPanel to Stack CP. Since then all the http_2xx just return 403 (...
codlord's user avatar
  • 125
0 votes
2 answers
84 views

Curl ftp error Could not resolve host

I am trying to connect to a partner site from Ubuntu server via ftp using curl. The command is given by the business partner curl -v -kG --ftp-method nocwd --ftp-ssl -cert "domainname.crt" --...
vrao's user avatar
  • 117
0 votes
0 answers
129 views

AWS ECR pull-through-cache fetch image via HTTP request to registry

I've set up an AWS ECR pull-through-cache for Docker Hub registry. Say it is available under: 123.dkr.ecr.eu-central-1.amazonaws.com/docker. Now after authenticating using: aws ecr get-login-password ....
fiction's user avatar
  • 173
0 votes
0 answers
56 views

Unable to cURL into redis

I'm getting a connection refused error on port 9443. redis-server is definitely running, version 7.2.4. I'm not finding any other configuration I need to be setting up. It's not using the docker image....
Fibericon's user avatar
  • 105
0 votes
1 answer
214 views

PHP curl_init(), curl_exec() work from the command line but fail when browsed/accessed from a webserver

The following PHP script (when not anonymized) runs successfully at the commandline. It uses curl_init() and curl_exec() to retrieve JSON-formatted data, converts the result into an associative array, ...
Clovis_Sangrail's user avatar
0 votes
0 answers
26 views

download file from heptapod - curl or wget

With my install script for Tryton ERP, I need to download files from heptapod.net. As on my target servers git normally is not needed, I should use standard tools like wget or curl. Could somebody ...
herrdeh's user avatar
-2 votes
1 answer
165 views

Why does curl time out locally?

The site runs on Ubuntu 20.04 / Apache 2.4.41. We receive cUrl error 28 (connection timeout) in local Wordpress and cli. The command works as expected when run from my home pc. From home pc: c:\...
cshuncs's user avatar
0 votes
0 answers
221 views

Bash Script - How to escape JWT in curl correctly

Im trying to just execute some curl commands against an API from within a bash script. I wrote it on Mac OS and the thing ran without issues. I started executing it on linux and found some strange ...
embedded's user avatar
  • 476
0 votes
1 answer
104 views

Using RHEL/AL2, `curl` works when I use the `--cacert` param, but fails without

Using RHEL/AL2, curl works when I use the --cacert param, but fails without When I try to connect to a server I get an error curl: (60) SSL certificate problem: unable to get local issuer certificate. ...
Ben Arnao's user avatar
  • 101
-2 votes
1 answer
196 views

How to change domains network route to custom IP when curl?

On Linux I do curl to api.binance.com website and it gives me very long ms latency 0.177s, although the server is located just near binance servers. # curl -o /dev/null -s -w 'Total: %{time_total}s\n' ...
sirjay's user avatar
  • 97
2 votes
0 answers
205 views

How to debug curl when netcat works?

The following cURL command hangs: $ curl -v http://1.1.1.1/* Trying 1.1.1.1:80... * Connected to 1.1.1.1 (1.1.1.1) port 80 > GET / HTTP/1.1 > Host: 1.1.1.1 > User-Agent: curl/8.3.0 > ...
charmoniumQ's user avatar
0 votes
0 answers
146 views

nginx - can't reach status endpoint on localhost

I try to setup the nginx exporter for prometheus but have difficulties with the proper configuration of my nginx. I have a default server block that redirects all requests from port 80 to 443. So all ...
andymel's user avatar
  • 211
0 votes
0 answers
69 views

libcurl issue after upgrading from Debian 10 to 11 cannot compile c++ program

I have a program that's compiles just fine in Debian 10. It uses libcurl-dev. Tried to migrate it on Debian 12, and I got errors like: undefined reference to `curl_easy_init' undefined reference to `...
Chris's user avatar
  • 1
0 votes
1 answer
309 views

Running PHP7.4 FPM on Ubuntu. Forgot to install PHP7.2-curl. Wondering if I will need to bring down all the other websites for the change

So I run a server with about 7 websites. Just wondering if adding a module I will have to bring down the php-fpm and thus reboot the nginx process or adding a module. Nginx Ubuntu 20.04 php 7.4 ...
BostonAreaHuman's user avatar
0 votes
2 answers
357 views

curl with --cacert fails on almalinux8 but works on ubuntu

We try this: curl -v --cacert cert.pem https://example.com/path.asmx on ubuntu its working, we're getting: successfully set certificate verify locations: * CAfile: cert.pem CApath: /etc/ssl/...
Guy's user avatar
  • 3
0 votes
0 answers
399 views

SOAP-ERROR: failed to load external entity - cURL: connection refused

I run my server with ubuntu 18.4 with openlitespeed installed, i'm making some php code to call a web service with SOAP, however, on my production server i'm facing some issues: There is the code i ...
squarefighter's user avatar
1 vote
0 answers
822 views

curl only attempting public key auth for SFTP, not printing SSH authentication methods available

I am trying to use curl to connect to an SFTP server. The server only accepts password authentication. When I try to connect, curl only attempts public-key auth. $ curl --verbose --insecure 'sftp://...
sourcenouveau's user avatar
0 votes
0 answers
212 views

getting error with curl command in Ubuntu

Below I am having these issues with all my VMs. I am unable to curl from my VMS and subsequently having issues with another program. host OS is ubuntu 20.04 and the guest is Centos 7 see error message ...
Rick's user avatar
  • 1
1 vote
1 answer
1k views

Nginx and PHP-FPM 504 gateway timeout with multiple curl requests

So I've been going crazy with this for the last 5 hours or something like that. We have been having a problem in one of our servers that suddenly started giving 504 gateway timeouts. So first versions:...
Tio's user avatar
  • 165
0 votes
1 answer
460 views

Intermittent connection reset errors on multiple sites using chrome, mingw curl and nodejs on Windows, but not in PowerShell or Linux VM

This started happening a month or two ago. I have a node script which fetches from: https://raw.githubusercontent.com/glowbuzzer/gbr/master/package.json This has started failing about one in three ...
jugglingcats's user avatar
0 votes
1 answer
43 views

Detect Linux/Ubuntu -> Lamp/Apache or Nginx -> PHP - detect outcalls

I have a Ubuntu Server setup with LAMP at DO (Digitalocean, VPS - self managed via shell) running mainly Wordpess (php). Now which ways do you recommend to detect outcalls/outreaches of scripts/...
Email's user avatar
  • 101
0 votes
0 answers
1k views

Setup proxy with local CA certificate on Ubuntu 20.04

In our company, we have a proxy server with a self-signed CA certificate implementing MITM inspection. No internet connection is possible without this proxy server. My certificate installation process ...
Green绿色's user avatar
0 votes
0 answers
160 views

How to get invitee´s information who schedules event at Calendly in GTM data layer

I´ve created a html site with a Calendly widget embedded to allow clients to scheduled meetings with me. Webpage is being tracked by Google Tag Manager, which is set up to listen events each time a ...
Apóstoles EquiposInn's user avatar
0 votes
1 answer
559 views

Can not compile php-curl ext with custom curl

I have libcurl installed here: /usr/local/curl-7.88.1/ I want to compile php-curl extension: # cd /usr/src/php-8.1.12/ext/curl/ # /usr/local/php81/bin/phpize Configuring for: PHP Api Version: ...
Nick's user avatar
  • 862
0 votes
1 answer
169 views

Jira - REST API returns HTML on one VPS but JSON on another VPS

I am facing a very strange issue which I cannot solve. Basically, I have 2 VPS machines which I connect via RDP as they are both Windows Server machines. I have cURL on both of them. One is running ...
matead's user avatar
  • 1
0 votes
1 answer
215 views

OpenSSL Error: lib(128):capi_rsa_priv_enc:function not supported in client Auth

My scripts to sign file via API was working properly fine when my previous server setup was Ubuntu 20.04 and openssl version is 1.1.1b. But after upgrade, I am getting this issue. Client environment ...
Manish Pandey's user avatar
0 votes
0 answers
677 views

cURL hangs unless using IPv6 with HTTPS

I need to make some cURL requests to a server that doesn't have an ipv6 address, but my machine only seems able to connect when 1) using https, and 2) using ipv6. Other requests hang indefinitely ...
eberts's user avatar
  • 1
0 votes
0 answers
361 views

How to get actual latency when downloading with curl?

I have an http software that let people be logged and download data according to sent bytes. It's an infinite download until connection stopped. I want to know the time for each download. The ...
Elikill58's user avatar
  • 119
0 votes
1 answer
697 views

Why does curl inside Docker to a subdomain in the same Host use private IP address?

Consider I have docker-subdomain.mydomain.com pointing to a website in a Docker container, and host-subdomain.mydomain.com pointing to a website in the Host itself. Both these websites are in the same ...
Nuno's user avatar
  • 633
1 vote
2 answers
811 views

Curl has incorrect DNS resolution in a dind context

I am running a docker:20.10.7-dind container. Into this one I am running a multi containers app. One container is a back container. Another one is a keycloak container. I connect on the back container ...
ERO's user avatar
  • 21
-2 votes
1 answer
2k views

Do I really need CURL on all my Windows devices? [closed]

So a vulnerability scanner has revealed that I have a version of CURL that is out of date on basically all of my machines. Environments in question are Windows 10 and Server 2019. From what I can ...
The ITea Guy's user avatar
1 vote
0 answers
372 views

Curl 'Expect: 100-continue' and empty response on some clients

I have a php script which is communicating with an external API via curl requests. Suddenly last week some requests got an empty response from the server, instead of the requested data (although the ...
TmCrafz's user avatar
  • 139
1 vote
1 answer
334 views

How can I curl -IL all the website pages starting with the root pagenot just 1 page at the time?

I need to curl -IL all the website and maybe do cron job or something every 24hrs so fastcgi can cache all the pages on vgo The cache don't hit unless I curl -IL the webpage so I need something that ...
Crypto Coupons's user avatar
0 votes
1 answer
194 views

troubleshooting dns resolution, packet dropping, and dig/nslookup

I've been trying to troubleshoot an issue where using a curl lookup command takes a long time (sometimes) and is quick some other time. TL;DR Question: how do i troubleshoot further. Connecting ...
Wel Rachid's user avatar
0 votes
0 answers
498 views

HTTP request fails with connection time out, but only from our server

My web application is running on a dedicated linux server located at a major hosting company. It needs to connect to an API provider, but libCurl always reports a connection timeout. I've boiled it ...
Agent Friday's user avatar
0 votes
0 answers
4k views

cURL error 7: Failed to connect to localhost port 443: Connection refused

OS version: Ubuntu 20.04 x86_64 Plesk version: Plesk Obsidian 18.0.47.5 Hi, I am running XenForo Forum on my Plesk which running behind Cloudflare. I get following erro log, which is showing me that ...
Adem Aga's user avatar
1 vote
0 answers
42 views

How do I change a port restricted IP in a Lightsail instance via API?

I have a port that is IP-restricted in a Lightsail instance. How do I change that restricted IP via API or even aws-cli? I prefer via API using cURL. Thanks in advance.
Primo's user avatar
  • 11
0 votes
1 answer
355 views

Restrict IP addresses Google APIs and Accesing from GKE (Google Kubernetes Engine) Request Denied

I created API Keys to enable Geocoding API, Maps JavaScript API and Places API with Restrict IP with Cloud NAT IP. My API Keys access from Kubernetes on GCP (Google Kubernetes Engine/GKE), when im ...
adhithia's user avatar
0 votes
1 answer
700 views

How can I make my nginx web server reachable from outside its local network?

I am trying to reach a subdomain of my website from outside its local network. I can successfully ping it (ping my.subdomain.com): PING my.subdomain.com (ser.ver.ip.add) 56(84) bytes of data. 64 bytes ...
naraghi's user avatar
  • 111
0 votes
0 answers
185 views

Use EasyCron to make cURL request with cronjob

I want to make a cURL request every 12 hours and trigger the request with a cronjob. Unfortunately I'm a total newbie in cURL and cronjobs. This is the request I want to make: curl --location --...
Cray's user avatar
  • 135
0 votes
1 answer
576 views

Block curl requests to a particular IP

I have a setup comprising of a server, a proxy server and a client. I need to test out a simple feature where I want to ensure that all the requests are going to the server through the proxy server ...
Prateek Bajpai's user avatar
1 vote
1 answer
1k views

HAproxy's http-check to a site requesting basic auth

HAproxy should use httpchk against a page that requires authentication via basic auth. backend backendname option httpchk http-check send meth GET uri /check/path/ ver HTTP/1.1 hdr ...
hopefullynotallreadytokennam's user avatar
0 votes
1 answer
6k views

How to debug OpenSSL SSL_read: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure, errno 0

We have a nginx setup with client certificate authentication running on docker, we are only using these ssl settings: ssl_protocols TLSv1.2; ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:...
skwokie's user avatar
  • 175
0 votes
1 answer
596 views

how can I extract a Version number from a website with curl and grep / sed?

I want to get the latets version number from this website: https://www.mailpiler.org/wiki/download so I do a curl to get the content and then just use a pipe to search for the string using grep curl ...
helpmenicely's user avatar
0 votes
1 answer
3k views

curl -X GET http://localhost:9200 return Access Denied

I am trying to install and setup Elasticsearch 8 on Centos 7 server, the service started but when I do curl -x GET HTTP://localhost:9200, or curl -x GET HTTP://127.0.0.1:9200 or curl -x GET HTTP://(...
Mai's user avatar
  • 1
1 vote
1 answer
12k views

Tips to Debug CURL with a client - (56) Recv failure: Connection reset by peer site

A client of mine is trying to connect to our site via CURL. The command they are running is: curl -Ik example.com The response they receive is: (56) Recv failure: Connection reset by peer site They ...
maestrojed's user avatar
3 votes
3 answers
2k views

`curl --verbose` but without SSL details? (i.e. just HTTP headers)

Calling -v/--verbose on curl(1) will show me the HTTP headers of a request & response (and also tell me if curl is following a redirect). But if the server is over HTTPS/SSL/TLS, then it will also ...
Amandasaurus's user avatar
  • 32.3k
0 votes
0 answers
9k views

Curl "peer's certificate issuer is not recognized" error when attempting to communicate between two servers

I have two servers A and B that host websites that work fine in a browser with https. The lock icon in the browsers show active and trusted SSL certificates. I'm trying to run curl so that server A ...
Timothy Fisher's user avatar

1
2 3 4 5
14