Skip to content

gildas/docker-httpie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

docker-httpie

This container runs the HTTPie CLI tool.

Example:

docker run --rm -t gildas/httpie GET https://jsonplaceholder.typicode.com/todos/1

Writing a POST:

docker run --rm -t gildas/httpie POST https://jsonplaceholder.typicode.com/todos userId:=1 title="Do this" body="From a container"

Now, if you need to access your localhost, on Docker Linux:

docker run --rm -t --network host gildas/httpie GET http://127.0.0.1:3000/todos

On MacOS and Windows:

docker run --rm -t gildas/httpie GET http://host.docker.internal:3000/todos

To get HTTPie's help:

docker run --rm -it gildas/httpie --help

About

HTTPie in a Container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published