Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nobletk/gocurl
A Command line tool written in GO to transfers data with URL syntax, for making HTTP/HTTPS requests to REST APIs.
https://github.com/nobletk/gocurl
Last synced: 28 days ago
JSON representation
A Command line tool written in GO to transfers data with URL syntax, for making HTTP/HTTPS requests to REST APIs.
- Host: GitHub
- URL: https://github.com/nobletk/gocurl
- Owner: nobletk
- License: mit
- Created: 2024-10-08T18:33:30.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-30T20:03:13.000Z (3 months ago)
- Last Synced: 2024-10-30T21:17:30.190Z (3 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoCurl
A Command line tool to transfer data with URL syntax, for making HTTP/HTTPS requests.
## Features
* HTTP and HTTPS protocols.
* GET, POST, PUT, DELETE, HEAD and PATCH methods.
* Pass custom header(s) to the server.
* Send data in the request body.
* Verbose mode for detailed info.
* Keep-Alive connection.
## Usage
```
gocurl [-options] ...
```or chain URLs with `--next`
```
gocurl [-options] --next [-options] ...
```The options are:
* `-d` or `--data` : HTTP POST data
```
gocurl -d '{"key\": "value"}' ...
```* `-H` or `--header` : Pass custom header(s) to server
```
gocurl -H "Content-Type: application/json" ...
```* `-k` or `--keepAlive` : Pass connection keep-alive to server
```
gocurl -k ...
```* `-X` or `--method` : Pass request method to server (default "GET")
```
gocurl -X ...
```* `-v` or `--verbose` : Enable verbose mode
```
gocurl -v ...
```## Getting started
### Clone the repo
```shell
git clone https://github.com/nobletk/gocurl
# then build the binary
make build
```### Go
```shell
go install https://github.com/nobletk/gocurl/cmd/gocurl@latest
```