Skip to main content

Questions tagged [curl]

cURL is a CLI tool for issuing HTTP GET, POST, & PUT request.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
20 views

Curl on Raspberry Pi cannot reach CloudFlare worker

Apologies in advance, I have limited technical knowledge. I have a Rapsberry Pi in a remote location that uploads an image to CloudFlare via a script that runs every 5-min. The upload is done via a ...
foilandwater's user avatar
0 votes
0 answers
41 views

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 ...
Viraj Patel's user avatar
1 vote
0 answers
37 views

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 ...
arizona525's user avatar
0 votes
1 answer
68 views

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-...
Ve-Khan's user avatar
1 vote
0 answers
44 views

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 ...
Codizon's user avatar
  • 111
0 votes
1 answer
63 views

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 --...
Snehasish Karmakar's user avatar
0 votes
1 answer
88 views

How can I download the latest .deb file from a Github release page using curl and wget?

I'm trying to find a way to download the latest released .deb file from a Github releases page, for example: https://github.com/grafviktor/goto/releases. the solution would first try to curl the page ...
Ilgar's user avatar
  • 3
2 votes
1 answer
30 views

How to check consistency of a generated web site using recursive HTML parsing

I have a FOSS project whose web site is generated by asciidoc and some custom scripts as an horde (thousands) of static files locally in the source files' repo, copied into another workspace and ...
Jim Klimov's user avatar
0 votes
1 answer
184 views

curl: (3) bad range specification in URL position 98

when I using this command to send a post reqeust on macOS(14.3.1) with zsh : ~ ⌚ 19:56:55 $ curl -X POST https://localhost:8081/infra/alipay/notification/v1/alipaySeverNotification\?...
Dolphin's user avatar
  • 639
0 votes
1 answer
66 views

Unable to get cURL command to run within a script with variables

I have what I thought was a simple script: #!/bin/sh URL=myserver:9443 myCmd="curl -sS -k -X 'POST' 'https://" myCmd+=$URL myCmd+="/SKLM/rest/v1/ckms/accessToken' " myCmd+="-...
NCDeveloper's user avatar
0 votes
0 answers
183 views

mark bundle as not supporting multiuse http/1.1 404 not found

When I am using this command to connect the websocket from local: curl -i -N \ -H "Connection: Upgrade" \ -H "Upgrade: websocket" \ -H "Sec-WebSocket-Key: ...
Dolphin's user avatar
  • 639
0 votes
0 answers
29 views

How to verify/test POST operation with curl to thttpd?

I am working on an embedded Linux system (kernel-5.10). I setup a thttpd web server in my system, and want to test it with curl utility. The /etc/thttpd.conf is as follows, dir=/var/www/data cgipat=**....
wangt13's user avatar
  • 443
1 vote
2 answers
127 views

pipe or redirect output from curl to ssh command

I'm pretty sure this isn't possible, but I have been wrong in the past. Basically, what I'd like to do is take the JSON output from a curl command and pipe it to jq for prettiness. Which works fine. ...
supradave's user avatar
0 votes
1 answer
52 views

Passing ETag as Bash Variable to cURL

I'm struggling passing my etag to cURL and getting a successful response. I get the etag with: etag=$( curl \ -SIXGET \ -u $token \ -H "Accept: application/json" \ "$api_url/...
Concerto's user avatar
0 votes
1 answer
60 views

envoy proxy running on localhost works fine from curl, but times out from golang "hey" tool

I'm stepping through some Envoy tutorials (probably doesn't matter if you don't know what that is). I'm doing this on my Ubuntu VM (Windows 11 host) and I'm behind a corporate firewall. We run a ...
David M. Karr's user avatar
0 votes
2 answers
142 views

Can cURL get the Username and Password Fields From a Website?

I'm using cURL to login to several websites. Looking through the DOM manually to get the fields for the username and password fields is tedious for my case. I'll then parse the fields and use the curl ...
Nickotine's user avatar
  • 489
-2 votes
1 answer
87 views

Download File Which has the latest Time Stamp From Website [closed]

Website is like this Can't add the actual site as it's from work. These files don't have version numbers, but have different names. No latest file link either, it's a very minimal website. You can ...
Nickotine's user avatar
  • 489
3 votes
3 answers
186 views

Can't access the site with non-browser clients, but works with the web browser

I can navigate to a web site using a web browser. But trying a GET request with curl hangs. For example, the command curl -vL my_url gets stuck with the following log: * Host $url:443 was resolved. * ...
kovac's user avatar
  • 151
0 votes
0 answers
30 views

iperf3 doesn't find network bandwidth difference but curl does

I have 1 client (A) and 2 servers (B & C). Servers were using different amounts of CPU with load balancing and i wanted to root cause it. I suspected it could be a network speed issue so I ran an ...
Erich Shan's user avatar
1 vote
1 answer
141 views

Reading mounted curlftpfs directory results in "Input/output error"

I want to mount a remote FTP directory in linux. One of the main tools I found is curlftpfs. However, when I mount the remote FTP directory and try to read its contents, I get the following error: $ ...
g00dds's user avatar
  • 143
-4 votes
2 answers
101 views

`curl` not work and does not give any message

I have a script that checks addresses with curl But why does some of the addresses like the one below hang? What can I do to avoid it? Check this address to understand more curl https://10.10.34.36/...
amir salarr's user avatar
1 vote
1 answer
56 views

Use axel to get source instead curl for fetchurl in NixOS

I'm trying to start a shell with Cuda. I have following shell.nix file { pkgs ? import <nixpkgs> { } }: pkgs.mkShell { name = "cuda-env-shell"; buildInputs = with pkgs; [ ...
s1n7ax's user avatar
  • 418
0 votes
1 answer
19 views

redirect to SSL works but get variables don't work

I have nginx and in server section and port 80 I redirect my host to port 443 such as: server { location / { return 307 https://$host$request_uri/?lang=fa } } It's work and redirect to ...
PersianGulf's user avatar
10 votes
1 answer
2k views

Why does wget work and curl fail with a specific REST URL?

In answering a question on another site, I came across a strange discrepancy between curl and wget when trying to fetch from this URL: https://www.uniprot.org/uniprot/A2Z669.fasta For some reason, ...
terdon's user avatar
  • 244k
3 votes
1 answer
648 views

How to parse strace recvfrom syscall?

I strace a curl command: strace -s 2000 -f curl google.com and see 2 DNS queries recvfrom(3, "\302\325\201\200\0\1\0\1\0\0\0\0\6google\3com\0\0\34\0\1\6google\3com\0\0\34\0\1\0\0\0\362\0\20*\0\...
Rocherlee's user avatar
  • 133
1 vote
1 answer
440 views

How to use self signed certificate with curl

I've generated SSL certs using following commands: C=PL ST=Mazovia L=Warsaw O="PHP-HTTP" CN="192.168.56.10" openssl req -out ca.pem -new -x509 -subj "/C=$C/ST=$ST/L=$L/O=$O/...
sebastian_t's user avatar
0 votes
0 answers
75 views

BASH Get input from STDIN while using | (pipe)

I'm creating a new script. I would like to implement a way to verify this script. So I'm using those commands to check the content of the file. remote_file="$(curl -m2 -s "$1")" ...
olive007's user avatar
  • 131
3 votes
1 answer
296 views

Locally built Git install can't connect to remote repos - missing remote-https

I'm trying to get Git working on an ancient Gentoo Linux box which I don't have root/elevated rights for. I figured I should be able to build and install Git locally in my ~/bin folder, whilst I can ...
Eddieddieddie's user avatar
0 votes
0 answers
275 views

SSL Error on Curl AIX

Hi guys I'm fairly new to curl and connectivity. I'm encountering an issue below using curl command: curl https://example.com/realms/apigw-auth-dev/protocol/openid-connect/token curl: (35) Unknown SSL ...
CLRR's user avatar
  • 1
1 vote
1 answer
1k views

Is curlftpfs missing in debian 12?

Tried to install curlftpfs in debian 12 says that the package is missing. While I understand that the package is still not active developed I use often curlftpfs inside some virtual machines transfer ...
user3450548's user avatar
  • 2,994
0 votes
0 answers
59 views

unable to update wget version

I want to update my wget version to 1.22 which is currently 1.19 using the command : curl -O https://ftp.gnu.org/gnu/wget/wget-1.21.tar.gz but getting following error: % Total % Received % Xferd ...
Aviator's user avatar
  • 127
0 votes
0 answers
83 views

How to download a file that redirects to another file?

I want to be able to install all my apps on a new machine programmatically. When I run curl -o ~/Downloads/musescore.AppImage https://musescore.org/en/download/musescore-x86_64.AppImage it downloads ...
Richard's user avatar
  • 158
0 votes
0 answers
294 views

sending an email via curl and stmp not working

I'm trying to write a script to send an email using: curl --url 'smtp://smtp.example.com:587' --ssl-reqd \ --mail-from '[email protected]' --mail-rcpt '[email protected]' \ --upload-file mail....
Mathew's user avatar
  • 243
0 votes
1 answer
805 views

error: libcurl >= 7.28.0 library and headers are required with support for https

I'm sorry for having written such a long question, but given how many times similar questions have been asked, I felt like I had to give a lot more context. In my system, I get. . . checking for curl-...
Sweet Shell O'Mine's user avatar
0 votes
0 answers
188 views

Why does tshark display "TLSv1" despite curl showing TLSv1.3 in the "Client Hello"?

The output from curl indicates TLSv1.3 (OUT), TLS handshake, Client hello (1). Use --tlsv1.3 to force it to use TLSv1.3: $ curl -6 --tlsv1.3 --tls13-ciphers TLS_AES_256_GCM_SHA384 -vL https://...
林果皞's user avatar
  • 5,206
0 votes
2 answers
320 views

Getting Error "{"errorMessages":["There was an error parsing JSON. Check that your request body is valid."]}

curl --request POST \ --url 'https://bankofloyal.atlassian.net/rest/api/2/issue' \ --user [email protected]:$JIRA_TOKEN \ --header 'Accept: application/json' \ ...
Abhishek Kumar's user avatar
1 vote
0 answers
247 views

Extract from a curl its dire failure message (if case of return code != 0), status code, output, and error message into four different variables

I need to extract from a curl emitted: the bash error message coming with a non-zero ?$ return code, in case my command would direly fail the http status code returned by the server contacted the ...
Marc Le Bihan's user avatar
1 vote
2 answers
453 views

How to extract the URL from cURL response in bash script and use this URL to run another cURL command

We have this sample curl command that retrieves data as output. Aside from that, that output also contains another URL that can be used again to perform curl command to get the next data. Please help ...
swijt's user avatar
  • 11
0 votes
1 answer
97 views

Is it possible to use wget or curl to download documents from the FCC ECFS site?

I'm trying to use the FCC's Electronic Comment Filing System (ECFS) to bulk download filings in individual proceedings. They have an API that will return every filing in a proceeding. It returns a URL ...
Sam's user avatar
  • 1
2 votes
1 answer
87 views

Firewalld with variable source

I'm writing a script and I'm stuck. I have a url (https://file.test.com/tips) that contains a file with the list of network subnets. File content: {192.168.1.0/24,10.0.0.0/24,2001:aaaa:bbbb:cccc::/64} ...
IgorK's user avatar
  • 135
0 votes
1 answer
71 views

Using bash functionality in rc files

I am trying to do something similar to Avoiding plain-text password in http_proxy but inside the .wgetrc/.curlrc configuration files. For whatever reason, I have spotty luck by passing proxy settings ...
Sterling Butters's user avatar
0 votes
0 answers
77 views

Curl command working on mobile but not in desktop

I think the problem is in my openssl library but i need to know wich is the problem to solve it. $ curl --version curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0....
Victor Company's user avatar
0 votes
1 answer
322 views

Can I relay the data received from Netcat to a URL as a POST?

I have a PHP-based website, and I'm trying to integrate it with another system. This system sends XML data to a specific port (let's say port 9999). I am able to capture the incoming data and save it ...
brayne's user avatar
  • 1
1 vote
1 answer
3k views

Installing curl in Debian via archive

I need to make a debian:9 container image work. First the dockerfile failed in a apt-get update -y so i did: RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/...
Marco Montevechi Filho's user avatar
0 votes
1 answer
506 views

Curl always trying to connect with http in home network

Tldr; From my home network on a (MacOS Venture 13.4): curl https://ifconfig.me works but curl ifconfig.me or curl http://ifconfig.me not working. When connecting to other networks both work fine. Is ...
Anand Prem's user avatar
0 votes
1 answer
2k views

HTTP version for CURL command on server and docker image

When I'm doing a CURL call curl https://example.com from a docker container, I got the error curl: (92) HTTP/2 stream 0 was not closed cleanly: HTTP_1_1_REQUIRED (err 13). But when I'm running the ...
noonenine's user avatar
2 votes
0 answers
220 views

Download tool to keep multiple ISOs up to date

I currently use this script (https://gist.github.com/Phill93/3c2b3503810a71bb98d6edb950d7aab2) to keep my ISO collection up to date. I use it to download ISOs via Rsync or HTTP/S. Now I would like to ...
Phill93's user avatar
  • 21
3 votes
1 answer
2k views

Why curl running from a container complains about local issuer certificate when all the certificates are supposedly present?

Here is my docker command line: mark@L-R910LPKW:~$ docker run -v /etc/ssl:/etc/ssl -v /usr/local/share/ca-certificates:/usr/local/share/ca-certificates -v /usr/share/ca-certificates:/usr/share/ca-...
mark's user avatar
  • 379
0 votes
1 answer
1k views

Specifying Character Sets With The Curl Command

I am attempting to extract a list of Chinese characters from https://lingua.mtsu.edu/chinese-computing/statistics/char/list.php?Which=MO to make a bash script. However, when I ran curl -o list.txt ...
James Norman 's user avatar
1 vote
1 answer
435 views

Download files from gnome-look.org via CLI

I can download extensions from https://extensions.gnome.org/ or https://cinnamon-spices.linuxmint.com/ using curl. However, I am unable to do it from https://www.gnome-look.org To be specific, I am ...
Ahmad Ismail's user avatar
  • 2,728

1
2 3 4 5
22