Questions tagged [curl]
curl is a data transfer utility used for a multitude of network=related applications (such as scraping data).
716
questions
0
votes
1
answer
95
views
How to force HTTP URLs to be rewritten to HTTPS when using curl command line
I'm using some public build scripts that call dependencies from URLs beginning with http://. These build scripts fail as the company firewall blocks the download of files over http and require ...
0
votes
0
answers
81
views
what is to be done to send a mail from curl from windows task scheduler or just by clicking on the batch file?
when I run the following command in a script (using a win10 laptop)
c:\curl\bin\curl.exe -v -k --connect-timeout 100 --max-time 200 --url "smtps://smtp.gmail.com:465" --user "user@gmail....
1
vote
0
answers
83
views
Can't ping sites or make curl request to some domains [closed]
I have a very serious problem with my whm. Anytime i reboot my server and run /scripts/upcp --force, i can be able to ping lizzypay.com and some other domain and curl works fine calling the domain(s) ...
1
vote
1
answer
283
views
Curl command freezes and does not work as expected
I would like to curl AMD website. I could wget it but I couldn't figure out how to get curl working.
# wget command works if the header is added
wget -U 'Mozilla/5.0' https://www.amd.com/en.html
...
1
vote
0
answers
652
views
how to use curl with X-Forwarded-For
Nginx is located at 6, and sending request from 17 to nginx using curl, use X-forwarded-for for the current 17 host. I expected only one request sent, but with X-forwarded-for, curl prints another ...
1
vote
0
answers
41
views
How to download only bytes needed from stackexchange archive 7z files?
I am working on a doomsday version of stackexchange completely offline using the dump files in archive.org, some of the site files are rather large where it wouldn't make too much sense to download ...
-1
votes
1
answer
39
views
tsunami windows 10 curl java home environment variable error
I am setting up tsunami on Windows 10. I am following the tutorial (https://github.com/google/tsunami-security-scanner). When I run the bash command, I get the following error:
ERROR: JAVA_HOME is not ...
1
vote
0
answers
1k
views
Why can I `curl localhost:<port>` but can't `curl <my IP>:<port>`?
I start by retrieving my IP address by running ifconfig | grep -B7 "status: active". Then, I listen on port 12345 by running nc -l 12345.
Observations:
curl localhost:12345 works
curl <...
1
vote
0
answers
96
views
Why is cURL returning just two square brackets with this request?
This curl request returns empty square brackets []:
curl "https://www.bathnes.gov.uk/NodeAPI/geoDataLookup/getGeoJSON/-2.8530120849609375/51.263633525637/-2.126541137695313/51.456574106519724/11&...
0
votes
0
answers
178
views
With Insomnia, is there a way of going back to a previous request?
For clarification, I'm talking about the REST/URL entry app Insomnia, a Postman alternative, or a way of doing cURL requests easily.
So for my simple REST request needs, this is just pretty much what ...
0
votes
0
answers
72
views
Airflow statsd exporter does not respond
I have airflow instance running on my server.
There is statsd-exporter running in docker.
However curl localhost:<binded_port>/metrics returns curl: (56) Recv failure: Connection reset by peer.
...
1
vote
0
answers
461
views
Curl Vs Spring RestTemplate.exchange - huge performance diffrence
Under what circumstances a Restful call made with curl would be much faster than Spring's RestTemplate
I have to use Spring's RestTemplate's exchange methods as I am sending a JWT token as an Http ...
1
vote
0
answers
239
views
curl sftp uploads empty file without error
How can I solve or better troubleshoot the following problem?
I need to upload a text file using curl via sftp to a remote server.
Authentication works, no error returned, but the file is created ...
0
votes
0
answers
375
views
curl not working on an RHEL8 Server
I have 3 running RHEL 8 VM's as Servers connected to my Company's network and for Setup purposes I need to download a script using curl.
The VM's are properly connected to the internet for example I ...
0
votes
0
answers
180
views
Installing cURL properly on OpenWRT Chaos Calmer (15.05.1) for ar71xx TP-LINK MR3020
I installed cURL like this on OpenWRT, as I also hadn't enough disk space available on the router, but when I tried to run it, it said:
# curl
curl: can't load library 'libmbedtls.so.9'
Okay, so just ...
0
votes
2
answers
629
views
Download from github using curl and batch file
I'm currently writing a script in which I need to download the latest version of yt-dlp.exe from Github.
Since the script will need to work on multiple machines, I opted to use curl as the downloader.
...
0
votes
2
answers
161
views
How can I run an exe from stdout?
I have a .exe file hosted as a release on a Github project, it is my project so I know this file is secure as I have compiled it. https://github.com/USERNAME/PROJECT/releases/latest/download/TORUN.exe ...
0
votes
1
answer
591
views
How can I access an intranet web site in the browser with command line?
From internet, I have access via ssh to the Machine_A and it can access the intranet. So, I can access all intranet sites with command line like:
ssh Machine_A -f 'curl -s http://192.168.0.51' > ...
0
votes
0
answers
305
views
Proton VPN is not installing due to CURL error! Why?
I have Fedora 38 and I want to install protonVPN. I followed the guide and downloaded the respective rpm package but when I try to install it or update dnf I receive this error:
[CODE]ProtonVPN Fedora ...
0
votes
0
answers
240
views
Sometimes cURL unable to get local issuer certificate
I use the curl library for https access. Set the CURLOPT_CAINFO parameter to specify the certificate file. Sometimes normal communication can be achieved,but sometimes cURL raises an error message [...
0
votes
1
answer
553
views
curl only works with -u but not with -n
I can't get where is the error
This works like a charm:
~$ curl -u '[email protected]:123' imaps://imap.mail.yahoo.com:993 -X 'STATUS INBOX (MESSAGES)'
But this don't:
~$ curl -n imaps://imap.mail.yahoo....
-1
votes
1
answer
1k
views
Trying to download multiple files with curl, files does not exist error
im having issues with curl again
i am trying to understand https://unix.stackexchange.com/questions/243134/curl-download-multiple-files-with-brace-syntax
but i do not understand it whatsoever
the ...
0
votes
0
answers
291
views
Curl allows application/x-www-form-urlencoded without actually encoding, is it valid?
curl -X POST [::1]:1024 -d 你好 allows to send non-ASCII without percent encoding, is it valid?
0
votes
1
answer
754
views
How do i download all files of a certain filetype (.txt) in an FTP server with cURL?
I am trying to download all .txt files in an ftp server.
The main usage or mission is to use wildcards, no specific file names.
Download a singular file works with the following command:
curl --user ...
0
votes
1
answer
2k
views
curl not providing GET results
I'm new to using curl. I have Windows 10 on a 64-bit system. I have successfully installed curl (I could check the version in the command line) and it did give a response to an API call once. But 95% ...
1
vote
1
answer
305
views
Error while using curl to ping application
When I was trying to use curl in the terminal to ping the application and I am getting an error as in attached image. Can anyone please explain me why am I getting this error and how to solve it.
This ...
1
vote
1
answer
69
views
Get Processing abandoned The video could not be processed error after use curl in google colab
I uploaded my video with mp4 format to Google Colab disk storage. then replaced with Google Console access token and run following curl command in a cell:
!curl -X POST -i "https://www.googleapis....
0
votes
0
answers
160
views
termux upload files and directories onto a nas using bash
Using Termux (linux like)
I successfully created a routine that monitors a directory and move the incoming files (actually I copy and then delete it) into disk attached to my router (netgear R6230).
...
0
votes
0
answers
37
views
accessing one website from my internal network
I have a very strange situation on all of my entire local network
this website can be ping(ed) from all PCs but can not be accessed.
The curl command result with openvpn you can see first in the photo ...
1
vote
0
answers
1k
views
curl and http2: how to test http2 support at command line?
I'm running curl --http2 -XGET "http://localhost:9090/index.html"
where localhost:9090 is a local server that logs the details of the HTTP request. Looking at those logs, I see:
2023/03/23 ...
0
votes
1
answer
3k
views
Is it possible to remove cURL command?
I am a new Tier2, Tier3 is requesting I attempt to write a script to remove the curl command from student PC's, is this possible? Should I suggest disabling curl via AD group policy?
1
vote
1
answer
5k
views
How to add selfsigned certificate to bundle in git-bash?
Attempting to update git on a windows machine in git-bash with git update-git-for-windows fails with a message from curl:
curl: (60) SSL certificate problem: self signed certificate in certificate ...
1
vote
2
answers
474
views
FTPS conncetion to Fritzbox NAS fails - due to EPSV / PAS port change?
I am using my FRITZ!Box 3490 with a connected USB HDD as a NAS server. I have configured a certain port (32753) for FTP communication. To ensure a static static servername (u**********u.myfritz.net), ...
2
votes
1
answer
470
views
How to print o ouput txt request result from curl command
we used this curl command (Windows 10) to check conection status to URls:
curl -v https://techdocs.broadcom.com 2>> C:\Temp\ResultadaoURL.txt, and this result:
* Trying 104.18.32.150:443...
* ...
0
votes
0
answers
45
views
Curl command - output is different
when I run this command in the UI its returning 32 ids:
http://csc2cxn00001736.cloud.kp.org:6080/api/v1/application/exchange/pickup?offset=0&orderBy=name
while when I run this curl command in the ...
1
vote
1
answer
8k
views
How to tell curl to use one client cert from the Windows Cert Store?
Disclaimer: I am new to curl.
When I go to https://server.cryptomix.com/secure/ with Chrome, I am asked by Chrome to choose one client cert among the few ones I currently have in my Windows Cert Store....
1
vote
1
answer
602
views
How Would I Query ICANN Domain Lookup Information Through Windows Command CURL?
I want to query ICANN domain lookup through Windows command (cmd.exe). I found the ICANN API https://opendata.icann.org/api/v2/console but after skimming through the documentation, I did not find ...
1
vote
1
answer
2k
views
How to send post request to a discord webhook via CMD
I have been trying to send post requests to a discord webhook for around an hour now but can't seem to figure out how to do it.
I want to send this:
{
"content": null,
"...
2
votes
0
answers
499
views
wget and curl switch default to background task
When I use wget and curl from bash, it automatically switches to a background task by default, without me having provided the required arguments. This is making it hard to use these commands in ...
2
votes
1
answer
285
views
Is there a way to Grep multiple HTML pages on a domain without downloading the files?
I essentially want to Ctrl+F multiple sites in a browser.
I have a range of URLs on a domain https://exampleblog.com/posts/{1-50}
I want to grep all of the pages under /posts/ at once. They are each ...
1
vote
0
answers
266
views
Curl downloads files with html body
The issue is when using curl to download a file that is readable like .ini or .txt it downloads the file but when inspecting its content it has a html body with the original file's code embedded ...
1
vote
0
answers
4k
views
curl: (35) error:0A00010B:SSL routines::wrong version number
I am using curl 7.85.0 under Windows 10 x64 and try to connect to a FTPS Filezilla server 1.5.1 using TLS V1.3 in passive mode. The server listen on port 635 on another Win10 computer.
The command ...
0
votes
1
answer
387
views
curl not installed on DD-WRT version 3.0-r49567
Router: D-link DIR869
Firmware: DD-WRT v3.0-r49567 std (07/27/22)
Trying to use curl, but getting error when trying to run a script:
sh: eval: line 0: curl: not found
How do I install curl, and why ...
1
vote
1
answer
2k
views
How to make cURL use a proxy without adding options?
Conclusion: To correct, there's no problem in Windows version cURL. Besides, one should set https_proxy if they want to proxy HTTPS traffic (or better all_proxy if no need to set different proxies ...
2
votes
0
answers
6k
views
Why am I getting "Connection Refused" when using "host.docker.internal" to hit the host's localhost?
I have the following...
version: "3.9"
services:
proxy:
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- UI_URL=http://host.docker.internal:...
0
votes
0
answers
2k
views
Powershell equivalent to curl --resolve
I need to use powershell to check the https response code of a call where the DNS entry isn't setup or points at an IP that cannot be reached. The command is run on the same server as the IIS hosting ...
0
votes
2
answers
512
views
windows command line utility to download from both http:// and file:// with progress
is there a windows command line utility that supports downloading from both http:// and file:// with progress?
already tried:
powershell Invoke-WebRequest : not working on windows 7
powershell (New-...
0
votes
1
answer
1k
views
How to deal with curl error 2 caused by "Failed getting banner"?
I have four Raspberry Pies all running curl 7.64.0. Each Pi uploads a webcam image to the same host every two minutes. That's 30 images per hour for four Pies. This is all done with simple bash shell ...
1
vote
1
answer
1k
views
Curl fetches Plain Text Shell Script, but Browser Pulls HTML
I was considering installing Deno, and the installation guide instructs to issue this command for Mac/Linux Shell:
curl -fsSL https://deno.land/x/install/install.sh | sh
Being careful not to blindly ...
6
votes
3
answers
3k
views
How to curl case-insensitive
If I use this link to install docker-compose, I get Not Found error:
[root@hostname ~]# curl -L "https://github.com/docker/compose/releases/download/2.9.0/docker-compose-$(uname -s)-$(uname -m)&...