HTTPie (aitch-tee-tee-pie) es un cliente HTTP de línea de commandos sustituto del curl.
Su objetivo principal es hacer las interacciones con Servicios HTTP más sencillas, para esto soporta JSON, highlighting, descargas wget-like, extensiones,…
Httpie es una aplicación Python, por lo que una vez instalado Python (soporta Python 2.6, aunque recomiendan Python 3.X) puedo instalarla con:
pip install –upgrade httpie
Una vez instalado podéis ejecutar el “Hello World”:
$ http httpie.org
$ http https://api.github.com/repos/stedolan/jq/commits?per_page=5
Su sintaxis es:
$ http [flags] [METHOD] URL [ITEM [ITEM]]
En su web podéis ver todas sus características: https://github.com/jkbrzt/httpie
- HTTP method
- Request URL
- Request items
- JSON
- Forms
- HTTP headers
- Authentication
- HTTP redirects
- Proxies
- HTTPS
- Output options
- Redirected Input
- Terminal output
- Redirected output
- Download mode
- Streamed responses
- Sessions
- Config
- Scripting
- Interface design
Os puede interesar este proyecto:
HTTPie + prompt_toolkit = an interactive command-line HTTP client featuring autocomplete and syntax highlighting



Deja un comentario