Questions tagged [curl]
cURL is an HTTP client library and command line tool.
635
questions
0
votes
0
answers
17
views
Using curl to get a specific value from Plesk Remote API (REST) [migrated]
I use curl to get a DNS record from my Plesk server:
curl -X GET -H 'authorization: Basic xxx' -H 'accept: application/json' 'https://example.com:8443/api/v2/dns/records/15781/'
result:
{
"id&...
0
votes
0
answers
35
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
56
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
106
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
125
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
106
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
91
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 website
The cache don't hit unless I curl -IL the webpage so I need something ...
0
votes
0
answers
46
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
93
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
111
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
2k
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
34
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
189
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
27
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
109
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
355
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
74
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
0
answers
31
views
Strange Apache CustomLog behavior
I'm adding a Docker healthcheck function which I've successfully done in one container, but adding the same code to a different container is behaving strangely.
Essentially, I'm simply trying to not ...
0
votes
1
answer
331
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
377
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 ...
0
votes
1
answer
618
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
0
answers
411
views
How to run Run a curl command in buildspec.yml with SSM start session
I am trying to pass this curl command in my buildspec.yml but it keeps on failing with the below error. What is the right way to pass the curl command? FYI i need to use aws ssm start-session since i ...
0
votes
1
answer
4k
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
370
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
1k
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://(...
0
votes
1
answer
5k
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 ...
0
votes
0
answers
71
views
Kubernetes. I cannot curl https url after Kube-Proxy applies iptables rules on node. Can curl successfully prior to rules being applied
When kube-proxy iptables rules are NOT applied, I can, for example, run: curl -k https://kibana.default.svc.cluster.local:443/api/status (IP address of kibana is 10.233.74.67)
But, as soon as the ...
2
votes
2
answers
607
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
6k
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
612
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
659
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-...
2
votes
1
answer
16k
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
432
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
220
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-...
0
votes
0
answers
2k
views
oauth2 on office365 smtp with curl error 530 5.7.57 Client not authenticated to send mail
I am using this curl:
curl -vvv --url 'smtp://smtp.office365.com:587' \
--ssl-reqd \
--mail-from "$user" \
--mail-rcpt "$destuser" \
--upload-file ./mail.txt \
--oauth2-bearer $...
0
votes
1
answer
1k
views
Curl and etc. HTTP requests not working when I connected to vpn
Please tell me how to solve next problem:
Curl and etc. HTTP requests not working when I connected to vpn.
I get a simple error - "could not resolve host".
But when i disconnect from vpn ...
1
vote
2
answers
278
views
Use .kube/config Client certs in curl
If you use kubectl get pod foo -v10 you see a curl line, but this does not work.
Example:
guettli@p15:~$ curl -k -v -XGET -H "Accept: application/json;as=Table;v=v1;g=meta.k8s.io,application/...
0
votes
0
answers
199
views
Apache ProxyPass: Connection timed out
I have my apache configured to proxy some traffic to an internal ip (127.0.0.1:8048). When accessing the internal IP, everything works fine. But when acessing the proxy, I receive:
Failed to connect ...
0
votes
1
answer
4k
views
curl: (60) server certificate verification failed CRLfile: none
I'm slowly transitioning from an exclusive developer role and into more of a hybrid DevOps role at my company. Which means I'm new to a lot of this, please go easy on me... :-p
My client's server is ...
1
vote
1
answer
263
views
Website blocks my requests from linux ubuntu server
I'm a Java engineer with zero dev ops experience. Lately I was playing around with linux ubuntu server first time and used docker with my selenium project and faced this problem:
I try to scrape HTML ...
1
vote
0
answers
2k
views
How to avoid "Could not resolve host" inside Docker under heavy load?
the problem I am dealing with for months is explained very easy:
I am running PHP-FPM with docker, and whenever the server load is increasing
I randomly get "Could not resolve host" errors (...
0
votes
0
answers
1k
views
Traceroute - Header Link CURL result Issue
We have systematic CURLs run every 15 mins - 2 hours from this system and logging their status. Every other CURL for the past 2 months has succeeded except this. Is there a way to identify why this ...
0
votes
0
answers
702
views
HTTPS POST-Request fails in connection with Content-Length
A PHP application posts XML data with curl; nothing fancy, the output looking like (c/p, but identifiers and passwords changed):
Host: foreign.host.example
Authorization: Basic dGVzdDpnZWhlaW0=
User-...
0
votes
0
answers
137
views
gnutls_handshake() failed: An unexpected TLS packet was received [duplicate]
I am facing this issue when triggering curl to a target application hosted in ubuntu 20.
curl: (35) gnutls_handshake() failed: An unexpected TLS packet was received,Below is the curl version in source....
0
votes
1
answer
291
views
What is the maximum value acceptable for xargs -P argument? [duplicate]
In this answer they mention 10
I did man xargs and couldn't find what's the maximum limit.
Is it possible to send 10000 cURL requests per second?
How about 50000 cURL requests per second? I mean all ...
4
votes
0
answers
3k
views
ngnix php curl old SSL session ID is stale, removing
I am making a php curl request from nginx server to apache server
It shows old SSL session ID is stale, removing
As per the link I have changed the SSLSessionCacheTimeout in bitnami apache server but ...
1
vote
1
answer
982
views
curl --insecure not working
I needed to run the below behind a proxy:
curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash
Which returned errors related to SSL (...
0
votes
1
answer
329
views
How to pass values to query externally
I have below similar logs.
I have created dummy index and created mapping like below in dev-tools
PUT new
{
"mappings": {
"properties": {
"@timestamp": {
...
0
votes
0
answers
611
views
Best practices to troubleshoot stuck php application due to internal curl calls to unresponsive endpoints
Recently I found myself with a website (Prestashop e-commerce on a Centos PHP-FPM /Apache / MySql machine ) that was down and not responding to web requests.
After investigation, issue was due to an ...