Skip to content

httpie running in docker alpine (python3+pip3+alpine+httpie)

Notifications You must be signed in to change notification settings

BWITS/docker-httpie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

docker-httpie

DockerHub Badge

Usage

$ alias http='docker run -ti --rm bwits/docker-httpie'

This will create a temporary alias. In order to make it persist reboots, you can append this exact line to your ~/.bashrc (or similar) like this:

$ alias http >> ~/.bashrc

Running HTTPie is as simple as invoking it like this:

From the official examples:

Hello World:

$ http httpie.org

Custom HTTP method and headers:

$ http PUT example.org X-API-Token:123 name=John

Submitting forms:

$ http -f POST example.org hello=World

Upload a file using redirected input:

$ http example.org < file.json

Download a file and save it via redirected output:

$ http example.org/file > file

You can supply any number of HTTPie arguments that will be passed through unmodified.

Help

HTTPie has a fairly extensive documentation available. Also, you can use its included help output:

$ http --help

About

httpie running in docker alpine (python3+pip3+alpine+httpie)

Resources

Stars

Watchers

Forks

Packages

No packages published