http 发包调试工具

  1. httpie 可以用来调试http
pip install httpie 

# POST 使用表单数据
http --form POST http://127.0.0.1:8000/snippets/ code="print 123"

{
  "id": 3,
  "title": "",
  "code": "print 123",
  "linenos": false,
  "language": "python",
  "style": "friendly"
}

# POST 使用 JSON
http --json POST http://127.0.0.1:8000/snippets/ code="print 456"

{
    "id": 4,
    "title": "",
    "code": "print 456",
    "linenos": false,
    "language": "python",
    "style": "friendly"

posted @ 2020-12-06 11:52  该显示昵称已被使用了  阅读(371)  评论(0编辑  收藏  举报