Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

blacktop/httpie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

httpie

Docker image with httpie and jq installed


License Docker Stars Docker Pulls Docker Image

Getting Started

$ docker run -it --rm blacktop/httpie -b ifconfig.co/json

{
    "country": "United States",
    "country_eu": false,
    "country_iso": "US",
    "hostname": "lqwtx.com",
    "ip": "34.10.12.40",
    "ip_decimal": 39585,
    "latitude": 35,
    "longitude": 105
}

Combine httpie and jq

$ docker run -it --rm --entrypoint=sh blacktop/httpie -c "http ifconfig.co/json | jq .ip"

"34.10.12.40"