Getsb is a command line tool for sending HTTP request.
shell
$ cargo install getsb
You can download prebuilt binaries in the
releases section, or create
from source.
shell
$ git clone https://github.com/nsheremet/getsb-cli.git
$ cd getsb-cli
$ cargo build --release
```
```
```
```
env
PATH
<path_stuff_here>;C:/getsb/;
This is the basic way to use getsb
.
```shell $ getsb GET https://www.rust-lang.org/ # =>
#
#
```
```shell $ getsb POST https://example.com/api/data -b "key=value" -h "Content-Type: application/x-www-form-urlencoded" # =>
```
You can use json files for sending request.
This is example request file request.json
json
{
"url": "https://example.com/api/data",
"method": "PUT",
"headers": [
"Content-Type: application/json"
],
"body": {
"key": "value"
}
}
To send a request using this file:
```shell
$ getsb -r request.json # =>
```
```shell $ getsb GET http://example.com -f response.dat # =>
```
The canonical source of this repo is hosted on GitHub. If you have a GitHub account, please make your issues, and pull requests there.
(C) Copyright 2017 by Nazarii Sheremet
Getsb is distributed under the terms of both the MPL2.0 license.
See LICENSE for more information.