맥(솔라리스)
CURL로 PAC(proxy auto config script) 호출 테스트
변군이글루
2023. 6. 22. 22:57
반응형
CURL로 PAC(proxy auto config script) 호출 테스트
proxy-pac-proxy 설치
npm install -g proxy-pac-proxy
PAC URI 변수 등록
export PROXYPACPROXY_URL=http://control.sangcheol.kr/proxy.pac
PROXY-PAC-PROXY START
proxy-pac-proxy start
$ proxy-pac-proxy start
Proxy succesfully started.
CURL로 호출하고 HTTP status code 확인
curl -s -o /dev/null -w "%{http_code}" "http://cms.sangcheol.kr"
$ curl -s -o /dev/null -w "%{http_code}" "http://cms.sangcheol.kr"
200
PROXY-PAC-PROXY STOP
proxy-pac-proxy stop
$ proxy-pac-proxy stop
Proxy successfully stopped.
CURL로 호출하고 HTTP status code 확인
curl -s -o /dev/null -w "%{http_code}" "http://cms.sangcheol.kr"
$ curl -s -o /dev/null -w "%{http_code}" "http://cms.sangcheol.kr"
000
참고URL
- proxy-pac-proxy -https://developer.aliyun.com/mirror/npm/package/proxy-pac-proxy
- pactester - http://manpages.ubuntu.com/manpages/bionic/man1/pactester.1.html
- [Shell] curl로 호출하고 HTTP status code 확인하기- https://blog.leocat.kr/notes/2018/08/03/shell-fetch-http-status-code-from-curl-result
728x90
반응형