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

https://github.com/nwtgck/https

HTTP Stream CLI
https://github.com/nwtgck/https

cli http http-client

Last synced: 3 months ago
JSON representation

HTTP Stream CLI

Awesome Lists containing this project

README

          

# https
[![CircleCI](https://circleci.com/gh/nwtgck/https.svg?style=shield)](https://circleci.com/gh/nwtgck/https)

**HTTP** **S**tream CLI

## Purpose

The purpose of `https` command is to
* Use HTTP/HTTPS streamingly
* Use HTTPS by default unlike `curl`

The last `s` of `https` has both meanings of **s**tream and HTTP**S** for usability of the flow and higher security.

The design policy is using the same option names as `curl`'s to relieve users' burden not to remember new things and not have confusion as much as possible.

## Installation

Get executable binaries from [GitHub Releases](https://github.com/nwtgck/https/releases)

OR

```bash
brew install nwtgck/https/https
```

## Usage

```bash
# GET
https get example.com
```

```bash
# POST
echo hello | https post example.com
```

### Same options as `curl`

Yon can access an HTTPS server disabling certification check like `curl -k`.

```bash
https get -k example.com
```

```bash
https get --insecure example.com
```

### Use HTTP

`https` command uses HTTPS by default. You can specify "http://" as follows to use HTTP.

```bash
# GET
https get http://example.com
```