Ctow
curl to wget - a simple utility for converting curl commands to wget commands
Install / Use
/learn @Hoverth/CtowREADME
CTOW
cURL to Wget
A simple rust binary utility to convert curl commands to wget commands.
Available via cargo install ctow (link to crates.io).
Usage
ctow can be used in two modes: command with arguments and as a command line interface
Command With Arguments
You can simply pass ctow [curl command], and ctow will print the converted command to stdout, with no formatting or anything when successful, so the output can be piped and manipulated into a command like wget $(ctow [...]), etc
Do note that when passing in a curl command, you do not explicitly need to include the leading curl, as it is discarded anyway. The options that curl uses (e.g. -A User-Agent-Here) needs to have a space between the flag and its argument (this is a TODO).
Command-Line Interface
ctow comes with a command-line interface, which does have formatted output, and is not designed for use with scripts, but for a more user-friendly, interactive experience.
There are three commands:
help- prints a help messagecurl- will convert a curl command into a wget commandexit- exits the ctow CLI
Contributing
All code is GPLv3+ licensed, and by contributing you agree to license the contributed code under this license.
Contributions are welcome for:
- missing curl / wget argument mappings
- test cases
- anything else, please open an issue beforehand
License
Copyright © 2024 Thomas Dickson and other contributors
This code is license under the GNU GPL v3+. See LICENSE.md for more details
Related Skills
himalaya
352.9kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
taskflow
352.9kname: taskflow description: Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layer
frontend-design
111.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
