| Crates.io | hur |
| lib.rs | hur |
| version | 0.1.0 |
| created_at | 2022-11-27 15:33:43.795931+00 |
| updated_at | 2022-11-27 15:33:43.795931+00 |
| description | CLI HTTP requests, nothing more complicated than that. |
| homepage | https://github.com/vkstrm/hur |
| repository | https://github.com/vkstrm/hur |
| max_upload_size | |
| id | 723800 |
| size | 66,319 |
Command-line utility for making HTTP requests.
Note: This program is not better than Curl. It will contain bugs and is unlikely to fully conform to the HTTP specification. I am however having fun writing it and find it to be useful in some situations.
GET is the default method.
hur https://petstore.com/animals -h "header:value"
To use another method add --method
hur https://petstore.com/animals --method POST --body '{"name":"Luffy"}'
Using --verbose mode will print, in JSON, the request and response objects.
{
"request": {
"method": "GET",
"headers": {},
"path": "/animals",
"etc" "..."
},
"response": {
"statusCode": 200,
"body": "{}",
"etc": "..."
}
}
Use --help for more information.
Proxy support with HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment variables.
Disable proxy for a request using --no-proxy
On Ubuntu, in addition to Rust, you will need sudo apt install build-essential libssl-dev pkg-config.
Or Cargo will tell you what you need most likely.