• Martin Thoma
  • Home
  • Categories
  • Tags
  • Archives
  • Support me

HTTPie

Contents

  • Installation
  • Usage
  • See also

Johannes recently showed me httpie. It's a very nice tool for sending HTTP requests. It is much simpler to use than curl.

Installation

$ sudo -H pip install httpie

Usage

$ http --form POST localhost:5000/api/recording recording=[{}] id=1
HTTP/1.0 200 OK
Content-Length: 21
Content-Type: text/html; charset=utf-8
Date: Sun, 22 Mar 2015 15:50:27 GMT
Server: Werkzeug/0.10.1 Python/2.7.8

edit recording with 1

The output is colored in a very nice way:

HTTPie in action
HTTPie in action

See also

  • github.com/jakubroztocil/httpie
  • requestb.in

Published

Mär 22, 2015
by Martin Thoma

Category

Code

Tags

  • Tools 2
  • Web Development 14

Contact

  • Martin Thoma - A blog about Code, the Web and Cyberculture
  • E-mail subscription
  • RSS-Feed
  • Privacy/Datenschutzerklärung
  • Impressum
  • Powered by Pelican. Theme: Elegant by Talha Mansoor