Questions tagged [curl]
cURL is an HTTP client library and command line tool.
621
questions
0
votes
0
answers
17
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
51
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
33
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-...
0
votes
0
answers
9
views
Random unexpected connection errors while fetching data
I am having a really weird problem with my VPS (Centos 7) for the last 2 days. I have an application where I fetch data from dozens of 3rd party websites. For the past 2 years everything was working ...
0
votes
1
answer
147
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
34
views
Socks5 proxy requests (via Selenium) are nerfed; same requests via cURL works
Good Day,
I've seen a lot of questions like this but I haven't seen anything similar to my situation. I am not sure if this is the right or best place to ask.
The issue I am facing is that I have a ...
0
votes
0
answers
23
views
Access Denied with IAM Update
In my scenario I have created a new policy to grant access to a server in our instance but it doesn't appear to have taken effect. We granted read and list permissions with arn:aws:iam::657644469569:...
0
votes
0
answers
61
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 ...
0
votes
0
answers
23
views
Curl request to cluster node port hangs
I am attempting to make a local request to the kubernetes cluster that is hosted on my server, the cluster's NodePort is listening at the following address 172.20.120.1:30280. External client in ...
0
votes
0
answers
32
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
58
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
137
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 ...
0
votes
2
answers
47
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
27
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
902
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
61
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
181
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
176
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
33
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
59
views
Where to install SSL Certificate for CURL request to external API
This is a bit of a strange situation, but I'm hoping someone here can provide some assistance. I have a legacy Java application that communicates with an external 3rd party API (UPS online tools). We ...
0
votes
0
answers
27
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
30
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 ...
3
votes
0
answers
662
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 ...
0
votes
0
answers
98
views
How to get CRL IP address during TLS handshake in air gap environment
Is there any way how to get the IP address of CRL during the TLS handshake in air gap env?
Example:
Do a simple curl request over HTTPS against app.contoso.com:
curl -v https://app.contoso.com ...
0
votes
1
answer
232
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
27
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
121
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 ...
0
votes
1
answer
233
views
Curl error (56) while trying to install Zabbix packages on RHEL 8
I followed the instructions here https://www.zabbix.com/download?zabbix=5.4&os_distribution=red_hat_enterprise_linux&os_version=8&db=mysql&ws=apache to install Zabbix 5.4 Mysql/Apache ...
1
vote
2
answers
519
views
Curl Command Send Asynchronous Request
I using this curl request for sending data to API :
curl --location --request POST 'MY_IP' \
--header 'Content-Type: text/plain' \
--data-raw ' [{
"event_id": "123",
}]
'
...
0
votes
0
answers
177
views
Replace anonymous ldapsearch command with curl command?
I have this working ldapsearch command for connecting anonymously to an internal ldap server:
$ ldapsearch -h my.host -p 389 -x -LLL -s base -b "" namingContexts
dn:
namingContexts: DC=org,...
0
votes
2
answers
234
views
Downloading a file using Windows CMD line with curl/wget
I have a client [Windows 10 VM] and a server [say a linux based VM].
I have Apache running on the Linux Server.
I have a file on the linux server that I want to download on my windows client.
I want ...
1
vote
1
answer
2k
views
curl says a valid certificate is expired
I have a gitlab community edition hosted on a server, and when using curl on this server to fetch this local gitlab website, I get an expired certificate error even if the dates are valid:
curl --...
0
votes
0
answers
35
views
Add some text to curl's user agent string? (i.e. curl with a UA that includes curl's default UA & my text)
I am writing a shell script which uses curl(1) to download files. By default curl will set a HTTP User-Agent (UA) to something like curl/7.74.0. I want to be a good internet citizen and set the UA to ...
0
votes
0
answers
256
views
cURL suddenly gives Connection Refused to an Ubuntu Server
I have a custom wordpress "client" plugin that makes a cURL call to a Node app on an Ubuntu server.
The call works perfectly from every WP installation, except for one where everything ...
0
votes
0
answers
180
views
Failed to connect to port 443: Connection refused cloudflare firewall
I'm trying to send a POST request to one of my websites which uses Cloudflare.
but it returns Failed to connect to domain.site port 443: Connection refused
I thought it might be the Cloudflare ...
2
votes
1
answer
885
views
Since Sep 30 14:01:15 2021 GMT any software using openssl <=1.0 (like curl, php etc.) can't connect to hosts with Let’s Encrypt certificates
Since Sep 30 14:01:15 2021 GMT any software using openssl <=1.0 (like curl, php etc.) can't connect to hosts with Let’s Encrypt certificates
* SSL certificate problem: certificate has expired
-1
votes
1
answer
155
views
How can I disable IP forwarding from IPv6 toIPv4
I have IPv4 and ipv6 addresses on my network card, when I send a request with curl I want only the respective IPv4 or IPv6 to be used and no fallback e.g. When IPv6 to IPv4 takes place.
curl --...
0
votes
2
answers
3k
views
cURL POST bash script adds single quotes to variables with spaces
The first 3 variables will always have no spaces. The fourth "slacksitename" has spaces
ip=“x.x.x.x"
record_name=“demo.xyz"
slackuri:”WEBHOOK"
slacksitename:”123 Main St"
...
0
votes
0
answers
25
views
Why is my PHP CLI Curl version different from curl and libcurl even if I try to force it with --with-curl flag during compilation?
I have compiled PHP after compiling Curl 7.73 .
Curl -v shows me it's 7.73, and if I go to my web server and check phpinfo() output it's also 7.73 .
However, the compiled php cli is showing me that it'...
0
votes
1
answer
464
views
Port 80 not open. Still gets 404 when curl
Weird issue I'm facing currently! There is nothing running on port 80.
Still curl gives 404 page not found. I can telnet to port 80 and even start a container exposing port 80 (host). But no requests ...
0
votes
0
answers
95
views
Jenkins maven curl - Can't open target/**.war
I'm trying to deploy war file using Tomcat manager remote deploy script but I get the error 'Can't open 'target/**war' file. I'm following a tutorial and it works for the author.
https://community....
3
votes
1
answer
814
views
Upgrading command line tools to support TLS1.3 on Amazon Linux 2
A server I need to communicate with only allows TLS1.3 traffic.
I have thus updated the version of OpenSSL bundled with Amazon Linux 2 to OpenSSL 1.1.1c.
Following this guide
I am now able to use TLS ...
2
votes
1
answer
2k
views
cURL can connect to localhost but browser cannot
My system is Win10 with WSL2, I ran a gogs docker container (from ubuntu in WSL):
83b2a8833235 gogs/gogs "/app/gogs/docker/st…" 17 minutes ago Up 17 minutes 0....
0
votes
0
answers
77
views
Automatic captive portal detection is problematic because some networks redirect outbound traffic and others block DNS requests entirely
I am trying to automate captive portal detection on an IoT device. My basic understanding of a typical captive portal is that it checks a device's MAC address on connection, and if the device's user ...
0
votes
1
answer
724
views
Sending a malicious package as a test to test Suricata alerts
I have a reverseproxy that proxies HTTP/HTTPS traffic between webbservers and I have set up Suricata in order to find and block malicious traffic to it.
Is there any way to trigger a alert via a CURL-...
0
votes
0
answers
86
views
wget or curl timeout after connection established, before download begins
I need to download data from a server in batch operations. The server shows the following behaviour with approximately 30 % of the downloads:
DNS works, host gets resolved.
Connection gets ...
0
votes
0
answers
99
views
Building cURL with NSS on Ubuntu server fails
On a fresh ubuntu 21.04 x64 or 20.04 lts x64 I do:
apt install build-essential
wget https://curl.se/download/curl-7.77.0.tar.gz
tar -xvzf curl-7.77.0.tar.gz
cd curl-7.77.0/
apt install libnss3-dev
./...
0
votes
0
answers
203
views
install curl 7.77 with http3 TLS-SRP SSPI ECH cent os 7
I'm trying to install curl 7.77 (libcurl) with all options (I also wan to try http3)...
I downloaded from https://curl.se/download.html and decompresse it, I ./configure like this
./configure --with-...
0
votes
0
answers
66
views
Querying a public API from AWS Sever (EC2) Fails
So I'm trying to query a Public API:
https://api.nasdaq.com/api/marketmovers?assetclass=stocks&exchange=n&exchangestatus=default
Now if I do this from any kind of code locally on my PC, all ...
0
votes
0
answers
894
views
Curl : Recv failure : Connection Reset By Peer and Unix Socket Crash
I'm trying to set up a unix socket for gunicorn and to ping it from curl (running curl --unix-socket /run/gunicorn.sock http://www.example.com --trace-ascii dump.txt). Unfortunately, the response from ...