Questions tagged [curl]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
88 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
  • 467
-2 votes
1 answer
75 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
  • 467
3 votes
2 answers
98 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
  • 141
0 votes
0 answers
17 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
30 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
  • 133
-4 votes
2 answers
80 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
42 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
18 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.8k
11 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
  • 241k
2 votes
1 answer
399 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
  • 123
1 vote
1 answer
133 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
61 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
129 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
151 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
0 votes
1 answer
593 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,846
0 votes
0 answers
47 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
56 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
  • 148
0 votes
0 answers
161 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
  • 235
0 votes
1 answer
398 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
112 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,116
0 votes
2 answers
209 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
187 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
318 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
74 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
69 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
51 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
68 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
245 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
903 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
276 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
1k 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
143 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
  • 387
0 votes
1 answer
794 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
0 votes
0 answers
186 views

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

I met an issue when I tried to configure for R installation in HPC. I'm trying to install R-4.1.0 and 4.3.0; both show similar issue. configure: error: libcurl >= 7.28.0 library and headers are ...
Debajyoti Kabiraj's user avatar
1 vote
1 answer
319 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,648
0 votes
0 answers
126 views

Curl multipart request as raw using netcat

I user Copy as Url and got curl URL -H 'Accept: */*' \ -H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \ -H 'Connection: keep-alive' \ -H 'Content-Type: multipart/form-data; boundary=----...
Taimur's user avatar
  • 1
6 votes
1 answer
300 views

Download a file and piping to uncompress is not as fast as expected

I need to download and decompress a file as quickly as possible in a very latency sensitive environment with limited resources (A VM with 1 cpu, 2 cores, 128MB RAM) Naturally, I tried to pipe the ...
Richard's user avatar
  • 113
0 votes
0 answers
28 views

Grep Negation Question [duplicate]

(curl -s 'https://wayfair.com' | grep -q "Sale") && osascript SendMessage.scpt 5555551234 https://wayfair.com The above works in conjuction with the script below to send a text ...
CaptainNewb's user avatar
0 votes
0 answers
17 views

String formatting in bash script won't work [duplicate]

I am working on a self project which is an API server. I am trying to test my api routes using curl command with bash scripts. The curl commands for post requests are pretty long so I want to use a ...
Chirag Kadam's user avatar
1 vote
1 answer
3k views

How to send multiline data in curl body within bash script?

I am trying to send multi-line comment in the curl body from bash script. Below is my curl invocation. #!/bin/bash temp="This is sample data: 2019/05/21 03:33:04 This is 2nd sample data: #...
Preeti 's user avatar
  • 223
0 votes
1 answer
178 views

curl 7.87.0 ignores --output argument

When I call curl --output quarto.deb -L $(curl https://quarto.org/docs/download/_prerelease.json | grep -oP "(?<=\"download_url\":\s\")https.*${ARCH}\.deb") the output is ...
Raniere Silva's user avatar
0 votes
1 answer
134 views

Curl Error 60 After Accidentally Deleting known_hosts file

I have a couple of Raspberry Pies that upload webcam images to a web host using a bash shell script. This is the upload code, which is identical on each Pi: curl -s -S -u myname: \ --...
Buadhai's user avatar
  • 237
2 votes
2 answers
1k views

curl for website without intermediate certificate

I need to make request to website using curl, but website has does not provide intermediate certificate in tls. What I mean: When connecting to server using TLS, it MUST (rfc5246 F.1.1, rfc5246 7.4.2) ...
filimonic's user avatar
  • 131
0 votes
0 answers
375 views

Curl add data to influxdb says {“error”:”unable to parse invalid field format”}

I am trying to add data with below curl command but it gives error echo -e “usage,host=influxdb,cluster=louis,pl_instance_name=2i-retegas,gitlabusage=“Thu Oct 20 13:48:02 2022”,jenkinsusage=“Fri Jan ...
Samurai's user avatar
  • 55
1 vote
2 answers
667 views

Apache Server: HTTP/2 issues

I've just set up a small Apache VM and enabled the HTTP/2 module as described in the documentation (HTTP/2 guide). To test it out, the recommendation is to use the non-browser client curl. However, I'...
Jeron Baffom's user avatar
0 votes
1 answer
257 views

Curl produces different results when invoked via systemd vs command line

I have the following unit file: [Unit] Description=Sends a message to a discord channel [Service] Type=oneshot ExecStart=curl --header "Content-Type: application/json" --request POST --data ...
L12C's user avatar
  • 11
0 votes
1 answer
1k views

Getting the issuer or subject hash from a server's SSL certificate

Is there a way to check the issuer of subject hash of some server's SSL certificate? I know that curl or wget search for the matching root certificate in /var/lib/ca-certificates/openssl or /etc/ssl/...
aviro's user avatar
  • 5,052
0 votes
0 answers
92 views

How can I measure how long cURL is taking to decrypt traffic?

How can I measure how long SSL decryption is taking during a cURL request on command line? I would've thought %{time_starttransfer} would be the time of the first byte before being decrypted (in a ...
Cherona's user avatar
  • 142
0 votes
2 answers
3k views

Expand variable in the JSON payload of a curl command

I have a shell script that sends a post request with curl. #!/bin/sh NEXT_JOB_COMMANDS='["sleep", "200s"]' STATUS="successful" if [ "$STATUS" = "...
ar-siddiqui's user avatar

1
2 3 4 5
22