Skip to content
/ qurl Public

A fast command-line HTTP request utility written in Rust

License

Notifications You must be signed in to change notification settings

zeerooth/qurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qURL (quick URL)

Crates.io Crates.io License Coverage Status

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

  • Rust community - for creating an awesome language with well-maintained documentation and excellent environment for learning and programming
  • clap and reqwest teams for amazing packages that this project heavily relies on

About

A fast command-line HTTP request utility written in Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages