Skip to content

knbr13/http-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

Installation

  1. Clone the repository:

    git clone https://github.com/knbr13/http-client.git
  2. Build the project:

    cd http-client
    go build

Usage

The general format of the command is:

./http-client -m [HTTP_Method] -b [body] -h [headers] -u [URL] -o [OUTPUT]

Examples

1- Send an HTTP GET request:

  ./http-client -m GET --url http://example.com

2- Send an HTTP POST request:

  ./http-client -m POST -u http://example.com  -b '{"key1","value","key2":"value"}'

3- Send an HTTP DELETE request:

  ./http-client -m DELETE -u http://example.com

4- Send an HTTP GET request and extract results to output file:

  ./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. See the LICENSE file for details.

About

๐ŸŒ HTTP Client is a command-line tool for executing HTTP requests

Topics

Resources

License

Stars

Watchers

Forks

Languages