title: How to use axios to make an https call?
body: <p>I am trying to use <a href="https://github.com/mzabriskie/axios" rel="noreferrer">axios</a> with a proxy server to make an https call:</p>
  
  <pre><code>const url = "https://walmart.com/ip/50676589"
  var config = { proxy: { host: proxy.ip, port: proxy.port } }
  
  axios.get(url, config)
  .then(result =&gt; {})
  .catch(error =&gt; {console.log(error)})
  </code></pre>
  
  <p>The proxy servers I am using are all in the United States, highly anonymous, with support for HTTP and HTTPS.</p>
  
  <p>I am receiving this error:</p>
  
  <blockquote>
    <p>{ Error: write EPROTO 140736580649920:error:140770FC:SSL
    routines:SSL23_GET_SERVER_HELLO:unknown
    protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:</p>
  </blockquote>
  
  <p>In order to ensure that the problem is with axios and NOT the proxy, I tried this:</p>
  
  <blockquote>
    <p>curl -x 52.8.172.72:4444 -L '<a href="https://www.walmart.com/ip/50676589" rel="noreferrer">https://www.walmart.com/ip/50676589</a>'</p>
  </blockquote>
  
  <p>This totally works just fine.</p>
  
  <p>How do I configure axios to work with proxies and https URL's?</p>