curl
curl http://www.icanhazip.com/
curl -x 127.0.0.1:3128 http://www.icanhazip.com/
socks5
curl --socks5 127.0.0.1:3129 http://www.icanhazip.com/
php
define(URL, 'http://www.icanhazip.com/');
define(PROXY, '127.0.0.1');
define(PORT, 3128);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, URL...