Skip to content
httpie-like HTTP client written in Go
Go Makefile
Branch: master
Clone or download

Latest commit

nojima Merge pull request #57 from thehowl/to-jsontokens
use json.Tokens instead of reflect
Latest commit c829949 May 14, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Update to Go 1.14 Mar 6, 2020
cmd/ht Rename executable name from 'hg' to 'ht' Jun 17, 2019
docs/images Update screenshot Jun 17, 2019
exchange download working (#55) Mar 20, 2020
flags Add licenses of new dependencies. (#56) Mar 20, 2020
input Implement --json flag Mar 3, 2019
output Merge pull request #57 from thehowl/to-jsontokens May 14, 2020
version Add licenses of new dependencies. (#56) Mar 20, 2020
.gitignore Rename executable name from 'hg' to 'ht' Jun 17, 2019
LICENSE MIT License Mar 10, 2019
Makefile download working (#55) Mar 20, 2020
README.md download working (#55) Mar 20, 2020
go.mod download working (#55) Mar 20, 2020
go.sum download working (#55) Mar 20, 2020
main.go download working (#55) Mar 20, 2020

README.md

httpie-go

CircleCI

httpie-go screenshot

httpie-go (ht) is a user-friendly HTTP client CLI. Requests can be issued with fewer types compared to curl. Responses are displayed with syntax highlighting.

httpie-go is a clone of httpie. Since httpie-go is written in Go, it is a single binary and does not require a heavy runtime.

Examples

This example sends a GET request to http://httpbin.org/get.

$ ht GET httpbin.org/get

The second example sends a POST request with JSON body {"hello": "world", "foo": "bar"}.

$ ht POST httpbin.org/post hello=world foo=bar

You can see the request that is being sent with -v option.

$ ht -v POST httpbin.org/post hello=world foo=bar

Request HTTP headers can be specified in the form of key:value.

$ ht -v POST httpbin.org/post X-Foo:foobar

Disable TLS verification.

$ ht --verify=no https://httpbin.org/get

Download a file.

$ ht --download <any url you want>

Documents

Although httpie-go does not currently have documents, you can refer to the original httpie's documentation since httpie-go is a clone of httpie. Note that some minor options are yet to be implemented in httpie-go.

How to build

make
You can’t perform that action at this time.