Files
tldr/pages.zh/linux/curlie.md

20 lines
547 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# curlie
> 一个前端工具,基于 `curl`,增加了 `httpie` 的易用性。
> 更多信息:<https://github.com/rs/curlie>。
- 发送 GET 请求:
`curlie {{httpbin.org/get}}`
- 发送 POST 请求:
`curlie post {{httpbin.org/post}} {{name=john}} {{age:=25}}`
- 发送带查询参数的 GET 请求(例如 `first_param=5&second_param=true`
`curlie get {{httpbin.org/get}} {{first_param==5}} {{second_param==true}}`
- 发送带自定义头部的 GET 请求:
`curlie get {{httpbin.org/get}} {{header-name:header-value}}`