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.
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.
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.
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.