title: Java servlet application running behind squid proxy on windows
body: <p>I'm behind a squid HTTP proxy requiring authentication and want to make API requests to an external server. However when I do so, I get the following error :</p>
  
  <p>Caused by: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"</p>
  
  <p>I've tried setting the proxy configuration by going to Control Panel > Java > Network Settings, but to no avail.
  How to solve this?</p>