«   2025/03   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
Recent Posts
Today
Total
03-16 00:57
300x250
관리 메뉴

변군이글루 블로그(Development)

curl 명령어 본문

리눅스

curl 명령어

변군Dev 2023. 5. 17. 14:39
728x90

curl 명령어

기본 구문

curl [options...] <url>
  • 옵션
    • --noproxy : 프록시를 사용하지 않는 호스트 목록
    • -x, --proxy [PROTOCOL://]HOST[:PORT] : 지정된 포트에서 프록시 사용
    • --resolve HOST:PORT:ADDRESS : HOST:PORT를 ADDRESS로 강제 해결

사용 예시

  • curl noproxy
curl --noproxy example.com http://example.com
curl --noproxy localhost,127.0.0.1 http://example.com
  • curl proxy
curl --proxy [PROTOCOL://]HOST[:PORT] [URL]
curl -x http://proxy-server:8080 http://example.com
curl -x proxy.example.com:8080 -U username:password http://example.com
  • curl resolve
curl --resolve HOST:PORT:ADDRESS [URL]
curl --resolve example.com:80:203.0.113.1 http://example.com

 

참고URL

- Ubuntu Manpage : curl command

 

728x90