3 releases
new 0.1.2 | Apr 27, 2025 |
---|---|
0.1.1 | Apr 27, 2025 |
0.1.0 | Apr 27, 2025 |
#327 in Web programming
44 downloads per month
16KB
138 lines
Zurl
Zurl is a lightweight command-line tool built in Rust that allows you to make HTTP requests directly from your terminal.
Installation
cargo install zurl
Flags
Flags | Description |
---|---|
-H or --header |
To add custom headers to the request |
-j or --json |
To send JSON data |
-q or --query |
To add query parameters |
-h or --help |
To list down all commands |
Basic Usage
Once installed, you can use zurl from the command line to make HTTP requests.
zurl <METHOD> <URL>
GET
Request
zurl GET <URL>
Add json
to your request
zurl POST <URL> --json '{"key":"value"}'
Add custom headers
to your request
zurl GET <URL> -H "Authorization: Bearer YOUR_TOKEN" -H "Custom-Header: Value"
Add query
parameters to your request
zurl GET https://api.example.com/search -q "key1=value1&key2=value2"
Contributing
We welcome contributions to Zurl! If you'd like to improve the tool, please feel free to fork the project, submit an issue, or create a pull request.
Steps to Contribute:
- Fork the repository.
- Clone your fork.
- Make your changes and commit them.
- Push your changes.
- Create a pull request.
Dependencies
~10–23MB
~314K SLoC