gURL is a Golang command line tool inspired by curl
. It can be used to make HTTP requests to a server.
This project was created to provide a simple CLI tool for making HTTP requests. While it's not as comprehensive as curl
, it serves as a practical introduction to creating CLI tools with Go. This project was also a response to a coding challenge.
To install this project, you need to have Go installed on your machine. Then, you can clone this repository and build the project:
git clone https://github.com/ericbsantana/gurl
cd gurl
go build
To use this project, you can run the built binary with the desired options. The following are some examples of how to use this CLI:
gurl http://eu.httpbin.org/get
gurl http://eu.httpbin.org/bearer -H 'Authorization: Bearer guineapig'
gurl http://eu.httpbin.org/post -X POST -d '{"name": "Robert J. Oppenheimer"}' -H "Content-Type: application/json"
gurl http://eu.httpbin.org/put -X PUT -d '{"name": "Ludwig Wittgenstein"}' -H "Content-Type: application/json"
Contributions are welcome. Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.