2 unstable releases
0.2.0 | Dec 1, 2020 |
---|---|
0.1.0 | Nov 28, 2020 |
#584 in HTTP client
28KB
623 lines
qURL (quick URL)
Quick command-line HTTP request utility written in Rust. The goal of this project is to provide a secure, reliable and quick command-line utility utilising the features Rust language. Using the verbose mode, it guides you through the process of making a http request, starting from parsed request data and finishing on response containing souce data, headers, ip address etc.
Note
qURL is a long way from completion, it may be unstable, unsafe and lack many features. It should only be used for testing purposes for now.
Installation
If you have cargo installed on your system:
$ cargo install qurl
You can also head over to releases tab and download the latest binary for your OS.
Usage
Simplest GET request:
$ qurl https://httpbin.org/get
Or, with explicit method parameter:
$ qurl get https://httpbin.org/get
To enable verbose output and get more information about requests and responses, add -v
flag (which will from now on be used in examples to provide some better understading about what's going on under the hood):
$ qurl https://httpbin.org/get -v
Let's add some headers (note that headers are not case-sensitive):
$ qurl https://httpbin.org/get -v --header accept:application/json
What about posting some json data?:
$ qurl post https://httpbin.org/post -v --json '{example:"json"}'
See qurl --help
for more options.
Special thanks
Dependencies
~9–22MB
~265K SLoC