grqz/curl-dev ? reverse-engineered prompt
Reverse engineered prompt
Build me a curl like command line tool and a small reusable library for transferring data from URLs.
I want it to let a user fetch or send data from the terminal using a simple URL, save the response to a file or print it to the screen, and support common things people expect like HTTP and HTTPS, plus basic file transfer support. Make it feel like a real utility someone could use from the command line, with sensible flags for things like showing headers, following redirects, setting request methods, and passing custom headers or data.
Please make the library usable from other software too, so the core transfer logic is separate from the CLI. Keep it reliable and well organized, with basic tests and clear build instructions. If you need current docs or details about expected behavior, look them up online and match the common curl style as closely as makes sense.
Are you gonna build this?
make sure you review the code using coderabbit