How to put the proxies in php_curl

Q: How can I use the proxies with PHP’s curl? A: <?php $ch = curl_init(‘https://bing.com’); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_PROXY, ‘proxyIP:proxyPass’); curl_setopt($ch, CURLOPT_PROXYUSERPWD, ‘proxyUser:proxyPass’); //if you have socks proxies curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); //if you have http proxies curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); echo ‘exec=’ . curl_exec($ch); ?>

Read More

How to put the proxies in Selenium

Q: How should I put the proxies in Selenium? A: Selenium doesn’t support proxies with authentification (you need a browser plugin for that) or you can whitelist your computer’s IP on https://buyproxies.org/panel/ips.php and then you can use the proxies without user and password.

Read More

Wget with proxies

Q: How do I use the proxies with the wget from linux’s terminal? A: You need to specify the proxy for both http and https sites. wget -e use_proxy=yes -e https_proxy=http://user:pass@ip:port -e http_proxy=http://user:pass@ip:port http://yourURL.com If you download via a FTP, you need put put ftp_proxy=http://user:pass@ip:port

Read More