F5F Stay Refreshed Software Operating Systems Help using curl

Help using curl

Help using curl

C
Canoptek
Junior Member
33
07-06-2025, 04:30 PM
#1
I've been attempting to grasp how to use curl, it functions mostly when I run a command like this (on Windows' cmd). It helps me see the upload progress. I've tried larger files that take around 20 seconds, and I want to observe the process instead of a static terminal. I noticed adding --progress-bar gives a progress bar, but it doesn't appear to work on Windows. I found some suggestions online suggesting using "|type" for Linux, but I can't locate equivalent options for Windows. I assume it works similarly there, though it might interfere with the file and cause errors like "Failed writing body" when reaching 100%. I'm hoping someone can clarify how to proceed on Windows. Thanks!
C
Canoptek
07-06-2025, 04:30 PM #1

I've been attempting to grasp how to use curl, it functions mostly when I run a command like this (on Windows' cmd). It helps me see the upload progress. I've tried larger files that take around 20 seconds, and I want to observe the process instead of a static terminal. I noticed adding --progress-bar gives a progress bar, but it doesn't appear to work on Windows. I found some suggestions online suggesting using "|type" for Linux, but I can't locate equivalent options for Windows. I assume it works similarly there, though it might interfere with the file and cause errors like "Failed writing body" when reaching 100%. I'm hoping someone can clarify how to proceed on Windows. Thanks!

L
Lorddoom139
Posting Freak
956
07-08-2025, 05:26 PM
#2
Are you working with PowerShell? Remember that "curl" in this context is an alias for Microsoft's Invoke-WebRequest command. You'll need to check the arguments it requires. For genuine curl, consider using WSL and then you can run commands like cat.
L
Lorddoom139
07-08-2025, 05:26 PM #2

Are you working with PowerShell? Remember that "curl" in this context is an alias for Microsoft's Invoke-WebRequest command. You'll need to check the arguments it requires. For genuine curl, consider using WSL and then you can run commands like cat.

K
Kacper_Bored
Senior Member
389
07-08-2025, 08:59 PM
#3
I see, you're using a command prompt. The curl command executed from there is likely the one you're referring to.
K
Kacper_Bored
07-08-2025, 08:59 PM #3

I see, you're using a command prompt. The curl command executed from there is likely the one you're referring to.

K
Klyner
Member
184
07-09-2025, 03:36 PM
#4
Ensure the command is correctly typed as "curl.exe". The issue seems to be truncation before the upload ends. I’d suggest using Cygwin with cat or the WSL2 built into Windows.
K
Klyner
07-09-2025, 03:36 PM #4

Ensure the command is correctly typed as "curl.exe". The issue seems to be truncation before the upload ends. I’d suggest using Cygwin with cat or the WSL2 built into Windows.