title: How to use URLConnection through a SOCKS proxy?
body: <p>How can I set the <code>SOCKS</code> proxy for a <code>URLConnection</code> given by <code>(new URL(url)).openConnection()</code>?</p>
  
  <p>Different proxies are needed on a per-connection basis, so please don't suggest setting system properties.</p>