Questions tagged [curl]
cURL is an HTTP client library and command line tool.
650
questions
0
votes
0
answers
13
views
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
However when I provide the cert itself from /etc/ssl/certs via --cacert the ...
-2
votes
1
answer
134
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' ...
2
votes
0
answers
72
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
> ...
0
votes
0
answers
35
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 ...
0
votes
0
answers
33
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 `...
0
votes
1
answer
70
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 ...
0
votes
2
answers
96
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/...
0
votes
0
answers
130
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 ...
1
vote
0
answers
261
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://...
0
votes
0
answers
87
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 ...
0
votes
1
answer
331
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:...
0
votes
0
answers
241
views
Intermittent errors fetching from raw.githubusercontent.com using 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 ...
0
votes
1
answer
36
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/...
0
votes
0
answers
420
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 ...
0
votes
0
answers
85
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 ...
0
votes
1
answer
263
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: ...
0
votes
1
answer
105
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 ...
0
votes
1
answer
154
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 ...
0
votes
0
answers
368
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 ...
0
votes
0
answers
133
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 ...
0
votes
1
answer
426
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 ...
0
votes
1
answer
415
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 ...
-2
votes
1
answer
917
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 ...
1
vote
0
answers
207
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 ...
1
vote
1
answer
212
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 ...
0
votes
1
answer
109
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 ...
0
votes
0
answers
307
views
How do I get cURL (CLI) to close the connection made to a https server?
cURL doesn't seem to care about closing the connection to a server even when I include the "Connection: close" header?
It respects the header for http, but not for https, seems like?
curl -v ...
0
votes
0
answers
274
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 ...
0
votes
0
answers
3k
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 ...
0
votes
0
answers
40
views
How can I suppress . and .. when using curl against vsftpd?
When using curl to get a directory listing from a remote host running vsftpd, how can you suppress "." and ".." from being listed?
Consider ...
curl --insecure --user 'name:pass' ...
0
votes
0
answers
253
views
Curl command doesn't works without sudo
I am trying to make a curl request to https://www.google.com but gives this error
SSL certificate problem: unable to get local issuer certificate
the same command works with sudo ,how to solve this ...
1
vote
0
answers
33
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.
0
votes
1
answer
261
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 ...
0
votes
1
answer
524
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 ...
0
votes
0
answers
123
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 --...
0
votes
1
answer
455
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 ...
0
votes
0
answers
614
views
ftps setup with client certificate verification
I'm trying to set up an ftps server (vsftpd) where the login method from the clients will not be through password but through client certificate verification.
As I have not been successful from what I ...
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 ...
0
votes
1
answer
5k
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:...
0
votes
1
answer
478
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 ...
0
votes
1
answer
2k
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://(...
1
vote
1
answer
8k
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 ...
2
votes
2
answers
1k
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 ...
0
votes
0
answers
8k
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 ...
0
votes
1
answer
782
views
curl request via Nginx with mTLS enabled
When Nginx is configured to verify server's TLS chain like this:
proxy_ssl_trusted_certificate some.pem;
proxy_ssl_verify on;
proxy_ssl_verify_depth 3;
and testing using a curl command, will ...
0
votes
0
answers
736
views
Nginx 502 Issue with the API & php-fpm
I've configured the new dev machine but can't get nginx working with the API as it is supposed to.
The current error is that 'curl localhost/api' returns a 502.
Host:
Nginx
PHP 8.1.x, php-fpm
...
0
votes
2
answers
1k
views
Basic auth and data from curl to HAProxy backend not working on TLS Termination - but works on TLS passthrough
listen pki
bind *:8884 ssl no-sslv3 crt /HAPROXY.pem.ecdsa verify required ca-file /CA_CHAIN.pem
mode http
http-request add-header Content-Type "application/pkcs10"
http-...
3
votes
2
answers
23k
views
WSL-Docker: curl: (60) unable to get local issuer certificate
After a PC reconfiguration I am unable to use Docker properly, since some curl commands are rejected due to SSL/TLS issues.
In just one example curl -vfsSL https://apt.releases.hashicorp.com/gpg ...
0
votes
0
answers
540
views
Odd TLS Error when using curl on origin server x.509
I am hoping someone can help explain what is happening in this situation..
As of now, I have a domain from google domains and I am using cloudflare for my DNS management. I am not using any TLS/SSL ...
1
vote
0
answers
317
views
Iptables DNAT rule curl connection refused
After adding the following DNAT rule I'm getting connection refused when attempting to curl 172.17.1.1:9000/v1/api:
iptables -t nat -I PREROUTING -p tcp --dst 172.17.1.1 --dport 9000 -j DNAT --to-...