공부/리눅스 관련

wget, curl 옵션 정리

inSaPPoRo 2022. 7. 28. 18:28

시작하면서

wget과 curl를 사용할때 가끔 여러가지 옵션을 더해서 사용하고 싶을때가 있는데 잘 정리해서 나중에도 보려고 기록합니다.

wget

proxy설정

$ wget -e use_proxy=yes -e https_proxy="{IP}:{port}" {URL}

basic인증을 넣기

$ wget --http-user={USER} --http-passwd={PASS} {URL}

curl

proxy설정

$ curl {URL} -x https_proxy=https://{IP}:{port}
반응형