title: Configure HTTPS proxy in Java
body: <p>for some API calls I need to configure a HTTPS proxy. </p>
  
  <p>Locally I can achieve this with the simple configuration of Systemproperties like this:</p>
  
  <pre><code>    System.setProperty("https.proxyHost", HOST);
      System.setProperty("https.proxyPort",PORT);
  </code></pre>
  
  <p>But that doesn't work when I try this on the code which will be deployed to a WildFily instance. I tried using Unirest, but this only offers HTTP proxy settings which won't work since i need HTTPS:</p>
  
  <pre><code>        Unirest.setProxy(new HttpHost("94.100.132.14", 80));
          HttpResponse&lt;InputStream&gt; response = Unirest.get(url).asBinary();
  </code></pre>
  
  <p>Is there any possibility to configure a HTTPS proxy with unirest or some similar libraries?</p>