cURL is an HTTP client library and command line tool.
Questions tagged [curl]
646 questions
0
votes
0 answers
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 --request POST…

Cray
- 135
- 5
0
votes
0 answers
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 log certain requests, using an env var.
In…

J. Scott Elblein
- 179
- 1
- 1
- 11
0
votes
1 answer
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 only and no requests can be sent to the server…
0
votes
0 answers
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 see in various links on the internet, does…

dvc
- 11
- 1
0
votes
1 answer
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…

skwokie
- 165
- 2
- 9
0
votes
1 answer
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 https://www.mailpiler.org/wiki/download | grep…

helpmenicely
- 5
- 3
0
votes
1 answer
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://(local IP of the host):9200, the return is like…

Mai
- 1
- 1
0
votes
1 answer
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 feel this response implies the issue must be on…

maestrojed
- 221
- 2
- 2
0
votes
0 answers
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 can talk to server B, but am running into an…

Timothy Fisher
- 115
- 2
- 7
0
votes
1 answer
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 both curl and Nginx perform server TLS chain…

user3621726
- 1
- 1
0
votes
0 answers
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
- ext-ctype, ext-fileinfo, ext-iconv,…

Santosh Baruah
- 21
- 6
0
votes
2 answers
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-request add-header Content-Transfer-Encoding "base64"
…

Eos Antigen
- 101
- 4
0
votes
0 answers
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 features from cloudflare, universal SSL is off, and…
0
votes
0 answers
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 $accesstoken
to try to send an email from an account where I registered…

golemwashere
- 734
- 1
- 10
- 22
0
votes
1 answer
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 everything works fine
I'm using Ubuntu 20.04 on Hetzner and…

Bogdan
- 1
- 1