HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
✍🏻
Learnary (learn - diary)
/
curl 명령어

curl 명령어

progress
Done
Tags
ETC
 

Usage: curl [options...] <url>

Invalid category provided, here is a list of all categories:
 
auth Different types of authentication methods connection Low level networking operations curl The command line tool itself dns General DNS options file FILE protocol options ftp FTP protocol options http HTTP and HTTPS protocol options imap IMAP protocol options misc Options that don't fit into any other category output Filesystem output pop3 POP3 protocol options post HTTP Post specific options proxy All options related to proxies scp SCP protocol options sftp SFTP protocol options smtp SMTP protocol options ssh SSH protocol options telnet TELNET protocol options tftp TFTP protocol options tls All TLS/SSL related options upload All options for uploads verbose Options related to any kind of command line output of curl
 
 
사용 옵션
  • v : 요청과 응답 모두 출력

post 방식

curl -H "x-api-key: S2K0A" "https://vipdeveloper.com/api" -d "body='' "
사용한 옵션
  • H : 요청 Headers 설정
  • d : 요청 시

rest api test 시 자주 사용 하는 옵션들

  • i : headers 확인
  • H : headers 설정
  • I : Headers와 body 함께 return 받기
curl https://www.naver.com -ㅍ:~|⇒ curl https://www.naver.com -I HTTP/2 200 server: NWS date: Tue, 03 Mar 2020 06:17:35 GMT content-type: text/html; charset=UTF-8 cache-control: no-cache, no-store, must-revalidate pragma: no-cache p3p: CP="CAO DSP CURa ADMa TAIa PSAa OUR LAW STP PHY ONL UNI PUR FIN COM NAV INT DEM STA PRE" x-frame-options: DENY x-xss-protection: 1; mode=block strict-transport-security: max-age=63072000; includeSubdomains referrer-policy: unsafe-url
  • O : download
  • v : request, response 모두 출력
  • k : https - SSL certificate 검증 없이 request
  • s : slient mode
  • d : HTTP Post data 전달 request / post test 시 유용