HostOnNet Blog

curl use socks5 proxy

Looking for Linux Server Admin or WordPress Expert? We can help.

To use curl through socks5 proxy, use

curl -v -x socks5://PROXY_SERVER_IP:PROXY_PORT http://checkip.amazonaws.com

if your proxy server require username and password, use

curl -v -x socks5://user:password@PROXY_SERVER_IP:PROXY_PORT http://checkip.amazonaws.com

Example


Posted in Linux

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.