Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```