Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-schneider-vtex committed Mar 3, 2023
1 parent 0fbf59f commit 63449a4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 17 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ cargo install kurl
```
### Example
```bash
❯ kurl ipinfo.io/8.8.8.8 --all
200 308 isjson=true "city country hostname ip loc org postal readme region timezone" "application/json; charset=utf-8"
~ ❯ kurl ipinfo.io/8.8.8.8 --all
200 304 get json "anycast city country hostname ip loc org postal readme region timezone" "application/json; charset =utf-8" ipinfo.io/8.8.8.8
{
"ip": "8.8.8.8",
"hostname": "dns.google",
Expand All @@ -36,19 +36,25 @@ cargo install kurl
# Help

```
Simple CLI HTTP client focused on security research
Usage: kurl [OPTIONS] <URL>
Arguments:
<URL> URL to send the request
Options:
-c, --status-code
-s, --size
-j, --valid-json
-t, --content-type
-n, --no-body
-k, --keys Try to guess the JSON's format
--all Display all status
-h, --help Print help
-V, --version Print version
-c, --status-code
-s, --size
-j, --valid-json
-t, --content-type
-n, --no-body
-k, --keys Try to guess the JSON's format
-u, --show-url Display the URL
--all Display all status
--scripts <SCRIPTS>
-X <VERB> [default: GET] [possible values: POST, GET, HEAD]
-d, --data <DATA>
-h, --help Print help
-V, --version Print version
```
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let resp = match args.verb {
Verb::GET => reqwest::blocking::Client::new().get(nurl),
Verb::POST => {
println!("a");
reqwest::blocking::Client::new().post(nurl)
},
Verb::HEAD => reqwest::blocking::Client::new().head(nurl),
Expand Down

0 comments on commit 63449a4

Please sign in to comment.