Brief introduction:
Description: This module is a support visual grammar/support format color output/support json/support upload file Form/support HTTPS proxy authentication/support arbitrary request data/Support custom Header/Support Persistent session/support class wget download features HTTP command line client, Completely replace curl, often used for test/debug interfaces
Project Address:
Https://github.com/jkbrzt/httpie
Quick installation:
Pip Install--upgrade Httpie
GET Related:
HTTP GET Https://api.weibo.com/2/trends/hourly.json ACCESS_TOKEN==2.004YPPQEMWHOVBB3FBEF84BEEKKNTC
Description: Simulates sending a GET request, noting that the key-value pairs of the query string are separated by = =
Post Related:
Http-f POST Https://api.weibo.com/2/comments/create.json ACCESS_TOKEN==2.004YPPQEMWHOVBB3FBEF84BEEKKNTC comment== " @LiManMan "Id==1
Description simulate sending a POST request, note that you must add-f to submit the data as a form
More use:
Https://httpie.org/docs
There are pictures and phases:
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/89/5B/wKioL1gQpJfzh28MAALYe9IaaYE983.png "title=" Httpie2.png "alt=" Wkiol1gqpjfzh28maalye9iaaye983.png "/>
This article is from "@Can up and No BB ..." Blog, be sure to keep this source http://xmdevops.blog.51cto.com/11144840/1866065
development tool _httpie. Using a cross-platform command-line alternative to Curl Httpie debug interface?