Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbir28 authored May 26, 2023
1 parent 3321bba commit c458ff4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A Python command-line tool for sending HTTP requests with different data types t
## Usage

```
python request_sender.py -u <url> -r <request> [-d <data>] [-H <headers>] [-p <parameters>] [-t <content-type>]
python sman.py -u <url> -r <request> [-d <data>] [-H <headers>] [-p <parameters>] [-t <content-type>]
```

### Arguments
Expand All @@ -32,19 +32,19 @@ python request_sender.py -u <url> -r <request> [-d <data>] [-H <headers>] [-p <p
### Send a POST request with JSON data

```
python request_sender.py -u https://example.com/api -r post -d '{"name": "John", "age": 30}'
python sman.py -u https://example.com/api -r post -d '{"name": "John", "age": 30}'
```

### Send a GET request with custom headers and URL parameters

```
python request_sender.py -u https://example.com/api -r get -H '{"Authorization": "Bearer token"}' -p '{"page": 1, "limit": 10}'
python sman.py -u https://example.com/api -r get -H '{"Authorization": "Bearer token"}' -p '{"page": 1, "limit": 10}'
```

### Send a POST request with form data

```
python request_sender.py -u https://example.com/submit -r post -d 'username=johndoe&password=secret' -t application/x-www-form-urlencoded
python sman.py -u https://example.com/submit -r post -d 'username=johndoe&password=secret' -t application/x-www-form-urlencoded
```

## Dependencies
Expand Down

0 comments on commit c458ff4

Please sign in to comment.