"Struggling with curl output to a file in windows—any tips?"
Hey folks,
I’ve been trying to save curl output to a file in windows, but it’s not working like I expected. I’m using something like `curl https://example.com > output.txt`, but the file ends up empty or weirdly encoded.
Am I missing something? Should I use `-o` instead? Or maybe there’s a trick with PowerShell vs CMD?
Also, does anyone know how to *append* to a file instead of overwriting? Tried `>>` but not sure if that’s the right move.
Thanks in advance! (and sorry if this is a noob question lol)
---
*PS: If you’ve got a favorite way to handle curl output to a file in windows, drop it below!*
Hey folks,
I’ve been trying to save curl output to a file in windows, but it’s not working like I expected. I’m using something like `curl https://example.com > output.txt`, but the file ends up empty or weirdly encoded.
Am I missing something? Should I use `-o` instead? Or maybe there’s a trick with PowerShell vs CMD?
Also, does anyone know how to *append* to a file instead of overwriting? Tried `>>` but not sure if that’s the right move.
Thanks in advance! (and sorry if this is a noob question lol)
---
*PS: If you’ve got a favorite way to handle curl output to a file in windows, drop it below!*
