본문으로 바로 가기
kitlocal.dev

curl 치트시트

로컬에서 실행

100% 브라우저에서 처리됩니다. 입력과 출력이 기기 밖으로 나가지 않습니다.

API 디버깅과 자동화를 위한 HTTP 클라이언트 명령어: 메서드, JSON 페이로드, 헤더, 인증, 멀티파트 업로드, 쿠키, 재시도 및 curl 8.x TLS 진단.

동작 원리

curl transfers URL data from the shell: set method (-X), headers (-H), body (-d/-F), and output (-v/-i/-w) explicitly, because curl prints only the response body by default.

서바이벌 키트

가장 먼저 배워야 할 몇 가지 명령어입니다.

42개 명령어

키보드 단축키/검색창 포커스JK선택 이동C선택 항목 복사F선택 항목 북마크Esc검색 지우기

Requests & Methods

Send GET, HEAD, POST, PUT, PATCH, and DELETE requests with clean headers.

  • 기본

    Fetch a URL and print the response body to stdout

    curl <url>

    명령어 만들기

    curl <url>

    값은 입력한 그대로 삽입됩니다. 공백이나 특수 문자가 포함된 경우 직접 따옴표로 감싸 주세요.

    사용 시점

    Baseline check for reachability, response payload, and pipe integration with jq.

    예제

    curl https://api.example.com/health

    결과

    {"status":"ok","version":"2.4.0"}

Payloads, Forms & Files

Send JSON, URL-encoded forms, multipart uploads, and binary bodies.

Auth, Cookies & TLS

Authenticate requests, manage cookies, resolve hosts, and verify certificates.

Headers, Timing & Debugging

Inspect TLS handshakes, response headers, status codes, and per-phase latency.

Downloads, Retries & Limits

Write files safely, resume interrupted downloads, cap wait time, and retry.

KitLocal 도구에서 사용해 보기

2026. 11. 15.에 확인됨 · curl 8.x 기준으로 확인됨

출처: curl manpage · Everything curl

꺾쇠괄호 안의 내용을 본인의 값으로 바꾸세요. 명령어는 공식 문서에서 가져왔으며, 예제는 명시된 버전에서 실행되었습니다.