Questions tagged [curl]

curl is a data transfer utility used for a multitude of network=related applications (such as scraping data).

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

how to stream a large directory to a HTTP server via CURL put?

I have a large directory that I want to upload to a remote server using only tar and curl. I don't need any compression as the directory already contains compressed data. here is the command I am ...
user avatar
0 votes
1 answer
44 views

Failed to run curl 7.83.0 on alpine

I'm trying to install curl in 7.83 on an alpine environment but it fails to run the command and give me the following error Error relocating /usr/bin/curl: curl_easy_nextheader: symbol not found Error ...
user avatar
  • 103
0 votes
0 answers
22 views

I want to download a 1.2 GB file, but the transfer always fails at 1.08 GB. Is it possible to download the file in two pieces?

I can download 1.08 GB of the file without any difficulty, but the download invariably fails at that point. I am fairly sure this is because nginx writes temp files to disk before sending them to the ...
user avatar
1 vote
2 answers
80 views

Can I output `curl` response while also checking for presence of ERROR string?

I have a command I am running with curl. The curl command always resolves successfully even when the server response includes the string ERROR somewhere. Can I somehow detect this response with some ...
user avatar
  • 2,566
1 vote
0 answers
23 views

SSL verification doesn't happen with curl cacert option

This is my understanding of curl --cacert option : We can make curl perform SSL verification against a custom truststore by providing a PEM file path to this option. It is mostly used when we are ...
user avatar
0 votes
1 answer
18 views

cURL shows information that I don't wanna see

today I was trying to add some wttr.in commands with curl to my powershell terminal profile. But when I just run the "curl wttr.in/Kayseri?format=3" it shows these informations that I don't ...
user avatar
0 votes
2 answers
42 views

How to conditionally add flags to curl?

I'm trying to conditionally add a header to a curl command. This is my initial attempt: # Set Auth Header if [ $IS_PUBLIC == 0 ]; then AUTH_HEADER="-H 'authorization: Bearer $TOKEN'" fi # ...
user avatar
0 votes
0 answers
40 views

Curl and etc. HTTP requests not working when I connected to vpn

Please tell me how to solve next problem: Curl and etc. HTTP requests not working when I connected to vpn. I get a simple error - "could not resolve host". But when i disconnect from vpn ...
user avatar
  • 1
-6 votes
1 answer
46 views

How to: Download Driver

I would like to download this package 3.16 - 5.14 drivers/staging/rtl8188eu/os_dep/usb_intf.c CONFIG_R8188EU CONFIG_STAGING 2357:010c * From here: https://linux-hardware.org/?id=usb:2357-...
user avatar
0 votes
0 answers
51 views

Difference between scp and sftp within curl

I have encountered a serious problem with curl. I want to copy a file from a raspberry on a remote server working under Windows 10. RSA key is installed on the server, everything is working ...
user avatar
  • 101
-1 votes
1 answer
44 views

Run curl with another user in CMD

Here's my question: When i start CMD locally as a current user and run following command: curl "https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe?utm_source=docker&...
user avatar
0 votes
1 answer
73 views

Can curl decompress a local file it already downloaded?

I tried downloading the source code of a web page using curl. The resulting file appears to contain "random" characters; in fact it is a compressed version of the html code. I know that ...
user avatar
  • 131
0 votes
0 answers
22 views

Anaconda overwrites curl

I have homebrew and tried to do brew install curl to update it to the latest version. However, curl --version was still returning an old version. When I did which curl it returned /anaconda3/bin/curl ...
user avatar
  • 101
0 votes
0 answers
21 views

Curl Commands parallel on two seperate shells

I am testing the download speed of a website with curl and want to run one with TCP and the other with UDP on two different VM´s. But I want to measure both of them at the same time so that I know how ...
user avatar
1 vote
1 answer
1k views

curl command is unable to upload files with unicode characters

I'm trying to upload a file to a FTP site but it looks like when the file name has unicode characters curl is unable to upload it. curl -u %username%:%password% -T "LENOVO - São Paulo.txt" ...
user avatar
1 vote
0 answers
4k views

Why this error tryng to cURL an API? OpenSSL SSL_connect: Connection reset by peer in connection to

I am going crazy with the following problem. Some times ago I was able to retrieve data from some API using the following cURL command involving the use of an SSL certificate, but now I am obtaining ...
user avatar
  • 6,539
0 votes
1 answer
123 views

TLS1.2 still used despite forcing use of TLS1.0

I have a customer who is trying to connect to my company's FTP server and we have asked him to force the use of TLS1.0, which he has done through a curl request (curl version : 7.29.0). However, ...
user avatar
-3 votes
1 answer
436 views

How to upload every file in directory to server with curl

I have a local folder called dist and I would like to upload the files in that folder to my server - but I don't want to upload the folder - only it's contents find dist -type f -exec curl -u username@...
user avatar
  • 95
2 votes
1 answer
371 views

How to detect in Bash when Curl fails downloading non-existent file?

I'm using curl to download a zip file. curl is called from a bash script: curl --user joedoe http://1.2.3.4/files/joedoe.zip -o /tmp/downloaded.zip I'd like to detect when the target zip file does ...
user avatar
  • 645
0 votes
1 answer
129 views

openssl s_client allows connection while curl does not

grief@rocket:/$ curl https://wrong.host.badssl.com curl: (60) SSL: no alternative certificate subject name matches target host name 'wrong.host.badssl.com' More details here: https://curl.se/docs/...
user avatar
  • 443
0 votes
1 answer
123 views

Creating a script to open a webpage in a browser, login to the page and then auto refresh it every X amount of seconds

I'm trying to create a script to automatically open chrome and login to my webpage, then auto refresh it every 30 seconds say. I've tried to use curl as on this page: How to login to website and auto-...
user avatar
  • 1
0 votes
0 answers
195 views

Sending a post request via curl for a variable with double quotes

I am trying to send POST request via curl command which has a variable and the variable is having an escape character like this curl -r POST 'https://<url>/admin/v1/Apps/.search' --header '...
user avatar
  • 11
0 votes
1 answer
628 views

Download blocked in Firefox, Chrome and Edge. "Couldn't download - network issue"

I'm running into a problem on Windows 10 where URLs of a certain type can't be downloaded in Firefox, Chrome or Edge. The URLs look like "http://localhost:8080/6/58/37.pbf". Using Curl (on ...
user avatar
0 votes
1 answer
679 views

How to download a file from private GitHub repo via the command line

I'd like to find an easier way to grab a file from a private GitHub repository. I managed to download a file via curl by creating a personal access token on GitHub, and then using it like this: curl ...
user avatar
  • 115
0 votes
1 answer
62 views

Bash script using Curl to output http status code fails with "could not resolve host"

I'm new to bash scripting and I keep getting "could not resolve host" when running the following script. I know it must be a slash or comma, but I have tried everything and can't figure it ...
user avatar
1 vote
0 answers
102 views

Is it possible to download an MKV file starting from half-way over HTTP?

I have an MKV video file that I need to download starting form half-way through. The video encoded as h264, the audio is encoded as AAC. Normally HTTP downloads sequentially so if your download speed ...
user avatar
  • 171
0 votes
1 answer
15 views

Break curl range download on fail (empty file downloaded)

I found today I can download multiple files in a range using curl and this is great. $ curl -O "http://example.com/[001-100].png" (https://everything.curl.dev/cmdline/globbing) Also I found ...
user avatar
  • 101
0 votes
0 answers
66 views

Getting curl error 60: Certificate has expired on BeagleBone Black but not other linux distros

I am having an issue with certificates using curl on a BeagleBone Black. First off I must mention the BeagleBone Black is running Debian 9.5 and cannot be upgraded to a newer version due to some other ...
user avatar
0 votes
0 answers
98 views

443: Connection refused - how to tell if it is refused on client or by the the remote server?

I have the following code on https://lampunams.lv/cu.php: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); $url = "https://markslojd.home.pl/...
user avatar
1 vote
1 answer
208 views

IIS Express returns HTTP Error 400 after calling from Ubuntu WSL

I'm working on two web applications: App1 is an application written in ASP.NET and runs directly on Windows 10. This application can be reached via browser at https://localhost:44311/ App2 is written ...
user avatar
0 votes
0 answers
24 views

Why Dig, Curl and Ifconfig gives separate results?

I hit customer FTP and it gives following IP : 212.18.129.202 My production server has IP: eno16780032: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 146.213.179.131 netmask 255.255....
user avatar
3 votes
1 answer
158 views

curl change path of download to dynamically

I want to make a batch so it can download files to a desktop folder for anyone who clicks on it this is the static code curl --output C:\Users\admin\Desktop\stuff/file.zip --url https://wordpress.org/...
user avatar
0 votes
0 answers
183 views

How to download or install php7.2-curl extension in ubuntu 21.04?

I want to install curl extension in my current php-project(php version is 7.2.34) for that i use this command sudo apt-get install php7.2-curl it's throwing following error and it's not showing in the ...
user avatar
0 votes
0 answers
679 views

Debugging HTTP 403 Forbidden when using cURL for mutual authentication SSL (mTLS)

I'm a beginner in security but I am trying to send a request to a server through mutual authentication. I was given CA pem file client cert pem file private key pem file Right now, I'm trying to ...
user avatar
0 votes
1 answer
149 views

Manually built and configured CURL on Ubuntu 14.04. Still shows old version?

I have a particular box that is running Ubuntu 14.04 and can't be upgraded. I did an "apt update" and then "sudo apt install curl" and it tells me that the version I have ...
user avatar
0 votes
0 answers
17 views

Wget, curl and Apache Benchmark not working for one of my machines to connect internal services

This one is better showing the results straight away. Good machine: ping google.com ...
user avatar
0 votes
1 answer
452 views

Posting file to pastebin via Batch with CURL

I am attempting to upload log files to pastebin using CURL.exe on a Windows 10 machine in a batch (.bat) file. The following command works: curl -X POST -d "api_dev_key=MY_DEV_KEY" -d "...
user avatar
  • 1,268
1 vote
0 answers
32 views

CURL/Mac: error while downloading. Protocol "https" not supported (error 1)

I experience issues with both Composer and Wordpress (npm doesn't seem to be affected 🤔) The error message from Composer is exactly https://repo.packagist.org could not be fully loaded (curl error 1 ...
user avatar
  • 951
0 votes
0 answers
34 views

HTTP requests from Linux server CLI to a website with dynamic content that requires Webdriver (JS emulation)?

Are there any simple solutions to making GET or POST requests from a CLI on a linux server to dynamically generated websites that require JavaScript to run in order to return HTML? I know that ...
user avatar
  • 183
0 votes
0 answers
51 views

Replay an http request stored in file

When trying to work out an http request, I often end up capturing the request content, e.g. like this: POST /some/endpoint?options=1 HTTP/1.1 Host: www.example.com Connection: keep-alive accept: */* .....
user avatar
  • 502
0 votes
0 answers
33 views

Automatic captive portal detection is problematic because some networks redirect outbound traffic and others block DNS requests entirely

I am trying to automate captive portal detection on an IoT device. My basic understanding of a typical captive portal is that it checks a device's MAC address on connection, and if the device's user ...
user avatar
0 votes
1 answer
113 views

curl command showing connection timed out but the url is accessible in browser

I am executing curl command curl --output --url https://100.64.0.6 but the result shows that there is no transfer of data curl --url https://100.64.0.6 shows Connection timed out but the url is ...
user avatar
0 votes
1 answer
38 views

From a webapp I can't connect to my own url

I have what looks like a network issue. Indeed, when I go on my webapp and I try to do the following curl command here's the answer to it: Whereas if I do the same command from somewhere else, I don'...
user avatar
2 votes
0 answers
111 views

curl with ssh -R proxy

I'm on Windows A and I have a Linux server B. I have a proxy (Clash) on A, curl -x localhost:7890 www.google.com works well. I want to let B curl www.google.com through the proxy on A. Here is my ...
user avatar
  • 21
0 votes
0 answers
100 views

Running Yum Install and using credentials from a .netrc file

Similar to how cURL can use a file in ~/.netrc to look up credentials when running cURL commands against a password protected web server, is there a way to instruct a yum repo (perhaps via a command ...
user avatar
  • 231
0 votes
0 answers
60 views

FTP upload begins and then drops abruptly

I am running the following curl command to upload files using git-bash from two Windows 10 machines (Client A and Client B) to a Windows Server (Server X). curl --continue-at - \ -T /path/to/...
user avatar
  • 1
0 votes
1 answer
270 views

Curl with GSS-API on Alpine Docker

I am trying to get curl installed in a Dockerfile with the GSS-API, SPNEGO, or GSS-Negotiate features installed so I can use the --negotiate flag. How can I configure curl to be installed with that ...
user avatar
  • 1,656
0 votes
0 answers
204 views

Convert curl to powershell script

I would like to convert the following curl command to a powershell script. Not sure how to. Help appreciated. curl -X GET \ --cert $(puppet config print hostcert) \ --key $(puppet config ...
user avatar
0 votes
0 answers
60 views

Determine what is causing suspicious request by curl.exe to a remote ip address

I am using windows firewall control (Binisoft/malwarebytes). The profile is set to block all network requests unless explicitly allowed. In the firewall connections log I recently noticed the curl.exe ...
user avatar
0 votes
0 answers
19 views

Filling asp form with Curl

I want to fill and send a form on a site web. It's ASPX page : </td><td>Connexion</td></tr> </table> <table width=200 cellpadding=0 cellspacing=0 style=...
user avatar

1
2 3 4 5
14