title: How to use Http, Socks4 and Socks5 proxies in java?
body: <p>I want to screen-scrape a website and for that I want to use Http, Socks4 and Sock5 proxies. So my questions are as follows:</p>
  
  <ol>
  <li><p>Is it possible to use these proxies through Java without using any other external API? For instance, Is it possible to send a request through <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/net/HttpURLConnection.html" rel="noreferrer">HttpURLConnection</a> through theseproxies?</p></li>
  <li><p>If it is not possible, then What other external APIs I can use?</p></li>
  <li><p>I was doing it by using a headless browser provided by <a href="http://htmlunit.sourceforge.net/" rel="noreferrer">HtmlUnit</a> but it takes time to load even simple webpages, so could you please suggest me other APIs (if any) that provide headless browsers that are fast in loading webpages. I don't want to open webpages that contain heavy AJAX or Javascript code. I just need to click on the forms button through the headless browser.</p></li>
  </ol>