Installing the command-line executable
Assuming you have Rust/Cargo installed , run this command in a terminal:
cargo install curll
It will make the curll command available in your PATH if you've allowed the PATH to be modified when installing Rust . cargo uninstall curll uninstalls.
Back to the crate overview .
Readme
Rust's curl 🦀
v1 - simple http get with optional headers
Usage
Using the short option
curll - u " https://jsonplaceholder.typicode.com/posts/1"
Using the long option
curll - - url " https://jsonplaceholder.typicode.com/posts/1"
Single header
curll - u " https://api.example.com/data" - H " Authorization: Bearer token123"
Multiple headers
curll - u " https://api.example.com/data" - H " Authorization: Bearer token123" - H " Content-Type: application/json"
Using long option for headers
curll - - url " https://api.example.com/data" - - header " Authorization: Bearer token123" - - header " Content-Type: application/json"