Questions tagged [curl]
cURL is a CLI tool for issuing HTTP GET, POST, & PUT request.
1,068 questions
0votes
0answers
28views
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 ...
0votes
1answer
116views
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 ...
0votes
1answer
72views
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 ...
0votes
1answer
125views
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....
0votes
2answers
42views
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 ...
5votes
3answers
1kviews
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 ...
0votes
1answer
303views
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 ...
0votes
0answers
42views
"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 ...
1vote
1answer
18views
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 ...
0votes
1answer
286views
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 ...
0votes
0answers
55views
I want to know the redirected URL from current URL
URL = "http://downloads.sourceforge.net/sourceforge/gptfdisk" I can access this URL in my browser, but it is getting redirected to a newer URL. Problem: When I give this command to get ...
1vote
0answers
151views
Trying to set up self signed certificates on other devices
To keep it short. I have a web server running (lighttpd on my Raspberry Pi), I want to be able to HTTPS to this IP from another device (PC - arch). For this I am trying to just use self-signed ...
0votes
1answer
434views
curl webpage and convert to markdown
having a dilemma with downloading webpages and converting them to markdown, for example: F=$(curl -O --silent https://www.guru3d.com/story/msi-teases-spatium-m560-ssd-with-innovative-nonmetallic-vc-...
1vote
1answer
142views
Any way to send to an android phone a notification with an attached picture uploaded from local directory?
I have a picture that is regularly updated by my local server. I would need a tool to send a regular notification on my android phone that I can trigger from my local raspberry pi 4 server and receive ...
0votes
1answer
382views
curl is not able to resolve host by default, --ipv4 switch works
I have a Linux Alpine (v3.18.6) container running on AKS. The curl command inside that container is not able to resolve a private DNS host. Also, nslookup throws SERVFAIL. However, when I provide --...