![]() |
[Java Snippets] Using proxies - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Java, JVM, & JRE (https://sinister.ly/Forum-Java-JVM-JRE) +--- Thread: [Java Snippets] Using proxies (/Thread-Java-Snippets-Using-proxies) |
[Java Snippets] Using proxies - Deque - 01-07-2013 Hi HC, these snippets show how to use proxies in Java. ProxyHelper loads a proxylist of the format address:port:type (one proxy per line) and returns a proxy, if requested. Code: import java.io.BufferedReader; This is how you actually use the proxy: Code: Proxy proxy = proxyHelper.getAndRemoveRandomProxy(); |