편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
39번째 줄: | 39번째 줄: | ||
==테스트 2== | ==테스트 2== | ||
<syntaxhighlight lang='console'> | <syntaxhighlight lang='console'> | ||
testuser@localhost:~$ curl -sI -x http://127.0.0.1:3128 http://www.wtfpl.net/txt/copying/ | head -1 | testuser@localhost:~$ curl -sI -x http://127.0.0.1:3128 http://www.wtfpl.net/txt/copying/ | head -1 | ||
47번째 줄: | 46번째 줄: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang='console'> | <syntaxhighlight lang='console'> | ||
testuser@localhost:~$ curl -sI -x 127.0.0.1:3128 | testuser@localhost:~$ curl -sI -x http://127.0.0.1:3128 https://raw.githubusercontent.com/anak10thn/WTFPL/master/LICENSE.txt | head -1 | ||
HTTP/1.1 | HTTP/1.1 200 Connection Established | ||
testuser@localhost:~$ docker logs proxy -n1 | testuser@localhost:~$ docker logs proxy -n1 | ||
172.18.0.1 - - [29/Aug/2022:08: | 172.18.0.1 - - [29/Aug/2022:08:32:17 +0000] "CONNECT raw.githubusercontent.com:443 HTTP/1.1" 200 4982 "-" "curl/7.74.0" "-" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang='console'> | <syntaxhighlight lang='console'> | ||
testuser@localhost:~$ curl -sI -x | testuser@localhost:~$ curl -sI -x 127.0.0.1:3128 http://github.com/ | head -1 | ||
HTTP/1.1 | HTTP/1.1 301 Moved Permanently | ||
testuser@localhost:~$ docker logs proxy -n1 | testuser@localhost:~$ docker logs proxy -n1 | ||
172.18.0.1 - - [29/Aug/2022:08: | 172.18.0.1 - - [29/Aug/2022:08:30:29 +0000] "HEAD http://github.com/ HTTP/1.1" 301 0 "-" "curl/7.74.0" "-" | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang='console'> | <syntaxhighlight lang='console'> |