# curl -v --resolve i.kfs.io:443:68.232.45.191 https://i.kfs.io/article5/global/364,324,6v1/original.png > /dev/null
其中 --resolve 的第三個參數一定要用 IP address,你可以看到他的運作原理:
* Added i.kfs.io:443:68.232.45.191 to DNS cache
Reference:
https://blog.gslin.org/archives/2016/02/28/6375/%E7%94%A8-curl-%E6%B8%AC%E8%A9%A6-reserve-proxy-%E6%98%AF%E5%90%A6%E6%AD%A3%E7%A2%BA%E9%81%8B%E4%BD%9C/
No comments:
Post a Comment