빠른 참조

HTTPie CLI 치트시트 (사용자 친화적 커맨드라인 HTTP 클라이언트)

직관적인 커맨드라인 HTTP 클라이언트 HTTPie 핵심 치트시트. GET/POST 요청, JSON 페이로드 문법, 커스텀 헤더, 인증 및 파일 다운로드를 정리합니다.

· 게시일

HTTPie는 JSON 기본 지원, 구문 강조 및 영구 세션 기능을 갖춘 직관적이고 개발자 친화적인 커맨드라인 HTTP 클라이언트입니다.

기본 요청 명령어 및 데이터 항목 문법

http GET api.example.com/users
http POST api.example.com/users name="John Doe" email="[email protected]"
http PUT api.example.com/users/1 status="active"
http DELETE api.example.com/users/1
Syntax Role Example
field=value String field (JSON / form) name="Alice"
field:=raw_json Typed JSON (int, bool) age:=30 active:=true
Header:Value HTTP Request Header Authorization:"Bearer tok"
param==value URL Query Parameter limit==10 page==2
field@file Embed / upload file [email protected]

인증, 출력 포맷팅 및 파일 다운로드

# Authentication
http -a username:password api.example.com/protected
http -A bearer -a secret_token api.example.com/data

# Output Formatting & Downloads
http -v api.example.com/users          # Full headers and body
http -h api.example.com/users          # Headers only
http -b api.example.com/users          # Body only
http -d api.example.com/archive.zip    # Download with progress bar
http -o myfile.tar.gz api.example.com/file

관련 치트시트

관련 주제