Questions tagged [curl]
cURL is a CLI tool for issuing HTTP GET, POST, & PUT request.
1,071 questions
0
votes
1
answer
82
views
IP address reachable by curl and ping, but not by telnet or urllib3
Yesterday, I came across puzzling behavior in my home network. I was trying from host 192.168.1.A (macOS) to connect to a selenium cluster running on port 4444 on host 192.168.1.B (ubuntu), and kept ...
0
votes
1
answer
53
views
InfluxQL query returns a "partial" answer over http. Can I curl the whole thing?
What’s the right way to pull a complete answer to an InfluxQL query over http?
I’m using the acct_gather plugin for a slurm cluster. It sends resource usage data to an influxdb v1 database. So if I ...
-1
votes
2
answers
292
views
PHP-FPM status page returns curl: (56) Recv failure
I have PHP-FPM pool with such configuration blocks:
...
listen = 0.0.0.0:9000
...
pm.status_path = /status
...
I'm getting
curl: (56) Recv failure: Connection reset by peer
while trying
curl 0.0.0.0:...
0
votes
0
answers
196
views
Grafana on Debian 11 system: curl http://localhost:3000 --> connection refused
I have a really hard time with my Grafana on a Debian 11 system. The server seems to be running fine in principle, but I cannot reach it. This happened after I did apt-get upgrade and update on the ...
0
votes
0
answers
95
views
cURL IPV4 not working while ports 443 and 80 are open
I'm currently setting up a Linux VPS (Debian-based), to run a Flask app and a python script to make API calls (the API only works over IPv4, not IPv6).
I'm having trouble with outgoing HTTPS ...
0
votes
0
answers
43
views
Practical way to define named ports (automatically resolved version of `/etc/services`)?
Named ports can be defined in /etc/services but none of curl, http.Get() (Go) or reqwest::get() (Rust) respects the definition.
While it is possible to manually lookup the integer port number by the ...
0
votes
1
answer
273
views
Bash HTTP image receiver server curl 55 broken pipe error
I'm new to writing bash scripts and mostly using chatgpt to get templates right now. I am trying to create a simple netcat based http server which receives and stores .png files. I have a second ...
0
votes
1
answer
237
views
Speeding up curl in bash scripts
I'm using a Bash script to retrieve the Spotify album thumbnail from whatever I'm listening at the moment to show it as an image in Hyprlock.
For this particular case, I'm using the command curl to ...
0
votes
1
answer
462
views
Make cURL resume interrupted downloads using the 'until' loop
Here is a solution how to make cURL automatically resume interrupted downloads, from the 2013 blog post by Juan Nunez-Iglesias:
export ec=18; while [ $ec -eq 18 ]; do curl -O -C - http://site.xyz/file....
0
votes
2
answers
91
views
Extracting a URL from a HTTP 200 Response and redirecting to that url
I've been searching for a while but I haven't found anything that 100% matches what I would like to achieve.
I'm submitting data to an API and getting a response. I can see the submission is ...
5
votes
3
answers
1k
views
cURL in bash script reads $HOME as /root/
OS in question is Fedora 40.
I would like to create a directory and download a file to it, so I wrote this simple script
#!/bin/bash
set -eu -o pipefail
sudo -n true
test $? -eq 0 || exit 1
...
0
votes
1
answer
452
views
Debian 12: ping works but dig/curl don't
Sorry if I post something solved on other thread, but I think I am not. I have read several similar issues but to no avail so far.
Basically my connection worked perfectly since I installed from ...
0
votes
0
answers
65
views
"Couldn't connect to server" outside of the server
I have a VPS instance running FreeBSD. I started a simple web server on port 80.
When I am ssh'd into the server, I can reach the server:
$ curl <server-ip-address>
hello
However, when I try to ...
1
vote
1
answer
37
views
Can not redirect data package from wlan0 to local proxy service port 12345 by iptables
That is my iptables config:
Chain PREROUTING (policy ACCEPT 3187 packets, 517K bytes)
pkts bytes target prot opt in out source destination
295 17664 LOG ...
0
votes
1
answer
654
views
How do I tell curl to try other protocols?
I tried downloading an Aeroméxico news item using
curl "https://www.aeromexico.com/en-us/am-news/new-Rome-route" -s --trace-ascii -
But it reports
== Info: HTTP/2 stream 1 was not closed ...