Curl CLI 가이드

26의 명령어를 찾았습니다

curl
http
기본 GET 요청을 보냅니다

예제:

$ curl https://api.example.com
get
request
curl -X POST
http
POST 요청을 보냅니다

예제:

$ curl -X POST https://api.example.com/users
post
create
curl -X PUT
http
PUT 요청을 보냅니다

예제:

$ curl -X PUT https://api.example.com/users/1
put
update
curl -X DELETE
http
DELETE 요청을 보냅니다

예제:

$ curl -X DELETE https://api.example.com/users/1
delete
remove
curl -H
http
헤더를 추가합니다

예제:

$ curl -H 'Content-Type: application/json' https://api.example.com
header
content-type
curl -d
http
데이터를 전송합니다

예제:

$ curl -d '{"name":"John"}' -H 'Content-Type: application/json' https://api.example.com
data
json
body
curl -i
http
응답 헤더를 포함하여 출력합니다

예제:

$ curl -i https://api.example.com
headers
response
curl -v
http
상세한 요청/응답 정보를 출력합니다

예제:

$ curl -v https://api.example.com
verbose
debug
curl -s
http
진행 상황을 숨기고 조용히 실행합니다

예제:

$ curl -s https://api.example.com
silent
quiet
curl -O
download
파일을 원본 이름으로 다운로드합니다

예제:

$ curl -O https://example.com/file.zip
download
save
curl -o
download
파일을 지정한 이름으로 다운로드합니다

예제:

$ curl -o myfile.zip https://example.com/file.zip
download
rename
curl -L
download
리다이렉트를 따라갑니다

예제:

$ curl -L https://example.com/redirect
redirect
follow
curl -C -
download
중단된 다운로드를 재개합니다

예제:

$ curl -C - -O https://example.com/largefile.zip
resume
continue
curl --limit-rate
download
다운로드 속도를 제한합니다

예제:

$ curl --limit-rate 200k -O https://example.com/file.zip
limit
speed
curl -F
upload
파일을 업로드합니다 (multipart/form-data)

예제:

$ curl -F 'file=@document.pdf' https://api.example.com/upload
upload
file
form
curl --data-binary
upload
바이너리 데이터를 업로드합니다

예제:

$ curl --data-binary @file.jpg https://api.example.com/upload
upload
binary
curl -T
upload
FTP로 파일을 업로드합니다

예제:

$ curl -T file.txt ftp://ftp.example.com/
upload
ftp
curl -u
auth
기본 인증을 사용합니다

예제:

$ curl -u username:password https://api.example.com
auth
basic
login
curl -H Authorization
auth
Bearer 토큰 인증을 사용합니다

예제:

$ curl -H 'Authorization: Bearer token123' https://api.example.com
auth
bearer
token
curl --oauth2-bearer
auth
OAuth2 Bearer 토큰을 사용합니다

예제:

$ curl --oauth2-bearer token123 https://api.example.com
auth
oauth2
curl -k
auth
SSL 인증서 검증을 건너뜁니다

예제:

$ curl -k https://self-signed.example.com
ssl
insecure
curl --cert
auth
클라이언트 인증서를 사용합니다

예제:

$ curl --cert client.pem https://api.example.com
cert
ssl
client
curl -w
advanced
응답 시간 등의 정보를 출력합니다

예제:

$ curl -w '%{time_total}\n' https://api.example.com
timing
performance
curl --connect-timeout
advanced
연결 타임아웃을 설정합니다

예제:

$ curl --connect-timeout 10 https://api.example.com
timeout
connection
curl --retry
advanced
실패 시 재시도 횟수를 설정합니다

예제:

$ curl --retry 3 https://api.example.com
retry
resilience
curl --proxy
advanced
프록시를 통해 요청을 보냅니다

예제:

$ curl --proxy http://proxy.example.com:8080 https://api.example.com
proxy
network