| Crates.io | hxr |
| lib.rs | hxr |
| version | 0.1.0 |
| created_at | 2024-11-19 21:29:27.745932+00 |
| updated_at | 2024-11-19 21:29:27.745932+00 |
| description | A simple HTTP request CLI tool |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1453876 |
| size | 46,395 |
A simple HTTP request CLI tool
cargo install hxr
~/.cargo/bin is in your PATHecho $PATH
export PATH="$HOME/.cargo/bin:$PATH"
hxr command directly from the terminal:hxr --help
GET request to api.ipify.org
hxr https://api.ipify.org/
POST requesthxr -m POST https://api.example.org/ -b bodyToSend
Run the command with headers:
hxr --method GET https://httpbin.org/headers -h "content-type:application/json" -h "Authorization:Bearer token123"
Run a simple GET request:
hxr -m GET https://api.ipify.org/