Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/knbr13/http-client
🌐 HTTP Client is a command-line tool for executing HTTP requests
https://github.com/knbr13/http-client
cli go http-client
Last synced: 11 days ago
JSON representation
🌐 HTTP Client is a command-line tool for executing HTTP requests
- Host: GitHub
- URL: https://github.com/knbr13/http-client
- Owner: knbr13
- License: mit
- Created: 2023-06-26T15:04:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-03T01:41:13.000Z (12 months ago)
- Last Synced: 2024-01-03T03:26:05.805Z (12 months ago)
- Topics: cli, go, http-client
- Language: Go
- Homepage:
- Size: 322 KB
- Stars: 14
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTTP Client
HTTP Client is a command-line tool for executing HTTP requests. It supports various HTTP methods such as GET, POST, PUT, DELETE, PATCH, OPTIONS, and HEAD.
## Screenshots:
![http-client](./http-client.png)
## Installation
1. Clone the repository:
```shell
git clone https://github.com/knbr13/http-client.git
```
2. Build the project:
```shell
cd http-client
go build
```
## UsageThe general format of the command is:
```shell
./http-client -m [HTTP_Method] -b [body] -h [headers] -u [URL] -o [OUTPUT]
```
## Examples1- Send an HTTP GET request:
```bash
./http-client -m GET --url http://example.com
```2- Send an HTTP POST request:
```bash
./http-client -m POST -u http://example.com -b '{"key1","value","key2":"value"}'
```3- Send an HTTP DELETE request:
```bash
./http-client -m DELETE -u http://example.com
```4- Send an HTTP GET request and extract results to output file:
```bash
./http-client -m GET --url http://example.com -o data.json
```5- Run the tool with `--help` arg to get a helpful message explaining how to use this tool.
## Contributions
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
1- Fork the repository.
2- Create a new branch for your feature or bug fix.
3- Make the necessary changes and commit them.
4- Push your changes to your fork.
5- Submit a pull request describing your changes.## License
This project is licensed under the [MIT License](https://github.com/knbr13/http-client/blob/main/LICENSE). See the [LICENSE](https://github.com/knbr13/http-client/blob/main/LICENSE) file for details.