📚 [Linux] CURL 옵션 사용하기

Category: Linux | 📅 June 10, 2021

옛날엔 telnet,nc, wget 등을 사용했지만 이제는 curl 시대!

기본 사용법

$ curl http://localhost  

HTTPS 사용법

$ curl --insecure https://localhost

RewriteRule 테스트

$ curl -L http://localhost

-L 옵션을 안주면 302가 표시됨. 결과를 보고 싶으면 옵션 처리

https RewriteRule 테스트

$ curl --insecure -L http://localhost

파일 다운로드

$ curl -O http://localhost/file-name
📖 Please Note that....
  • [Software Architect]
  • 💭 Reviews
  • 맥에선 기본적으로 curl 이 있다!!
  • 2025년 업데이트 . 기록하면 뭐나 써먹질 못하는데.. ㅠ_ㅠ
  • 🏷️ Tags
  • #curl  
  • #tips  
  • #wget