cli README

The project's README from github.com/httpie/cli. As one markdown file: README.md.

HTTPie
HTTPie CLI: human-friendly HTTP client for the API era

HTTPie for Desktop Twitter Chat

Docs Latest version Build Coverage PyPi downloads

HTTPie (pronounced aitch-tee-tee-pie) is a command-line HTTP client. Its goal is to make CLI interaction with web services as human-friendly as possible. HTTPie is designed for testing, debugging, and generally interacting with APIs & HTTP servers. The http & https commands allow for creating and sending arbitrary HTTP requests. They use simple and natural syntax and provide formatted and colorized output.

HTTPie in action

We lost 54k GitHub stars

Please note we recently accidentally made this repo private for a moment, and GitHub deleted our community that took a decade to build. Read the full story here: https://httpie.io/blog/stardust

Getting started

Features

See all features →

Examples

Hello World:

https httpie.io/hello

Custom HTTP method, HTTP headers and JSON data:

http PUT pie.dev/put X-API-Token:123 name=John

Build and print a request without sending it using offline mode:

http --offline pie.dev/post hello=offline

Use GitHub API to post a comment on an Issue with authentication:

http -a USERNAME POST https://api.github.com/repos/httpie/cli/issues/83/comments body='HTTPie is awesome! :heart:'

See more examples →

Community & support

Contributing

Have a look through existing Issues and Pull Requests that you could help with. If you'd like to request a feature or report a bug, please create a GitHub Issue using one of the templates provided.

See contribution guide →

cli (httpie/cli)

Searching Database…

38.7K ·GitHub
这是什么?HTTPie 是一款命令行 HTTP 客户端,旨在让用户在终端中与 API 和网络服务器交互时尽可能简单易用。它提供 http 和 https 两个命令,用于发送各种 HTTP 请求,语法简洁,输出带颜色且格式清晰。
它和直接用 curl 有什么不同?HTTPie 注重易用性:它的请求语法比 curl 更简单、更自然,并会自动格式化 JSON 等输出内容并加上颜色;同时开箱即用,内置 JSON 支持、会话和下载功能。
我该如何安装并开始使用?使用你所在平台的包管理器安装(例如 pip、Homebrew、apt),具体步骤参见所附的安装指南;安装后,直接在终端中调用 http 或 https 命令即可发送请求。
它能在 Windows、macOS 和 Linux 上运行吗?可以。它是一款基于 Python 的命令行工具,因此只要系统安装了 Python,就能跨平台运行,包括 Windows、macOS 和 Linux。
HTTPie 在 GitHub 上失去 5.4 万个星标的背后是怎么回事?维护者不慎将仓库短暂设为私有,结果 GitHub 永久删除了该项目十年左右积累下来的点星用户群体。
HTTPie 能像 wget 那样处理文件上传和下载吗?可以。发送请求时它支持表单和文件上传,并提供类似 wget 的下载功能,可将 HTTP 响应保存到磁盘。
它支持持久会话和身份验证吗?支持。HTTPie 包含持久会话功能,并内置支持 HTTPS、代理以及多种身份验证方式。
我可以用插件扩展 HTTPie 吗?可以。该项目将插件支持作为其核心功能之一,与自定义请求头和任意请求数据等功能并列。
What are similar projects?posting, insomnia, hurl, hoppscotch, wuzz, captcha-api, httpx, bruno
Creator
httpie
Size
6.8 MB
Stars
38.7K
Age
14y
Commits · 90 Days