How do I save curl output to a file in Windows? or What's the best way to redirect curl output to a f

12 Replies, 737 Views

"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!*

Messages In This Thread
How do I save curl output to a file in Windows? or What's the best way to redirect curl output to a f - by - 17-11-2024, 11:24 PM



Users browsing this thread: 1 Guest(s)