title: Python requests API using proxy for https request get 407 Proxy Authentication Required
body: <p>I've been struggling with my company proxy to make an https request. </p>
  
  <pre><code>import requests
  from requests.auth import HTTPProxyAuth
  
  proxy_string = 'http://user:password@url_proxt:port_proxy'
  
  s = requests.Session()
  s.proxies = {"http": proxy_string , "https": proxy_string}
  s.auth = HTTPProxyAuth(user,password)
  
  r = s.get('http://www.google.com') # OK
  print(r.text)
  r = s.get('https://www.google.com',proxies={"http": proxy_string , "https": proxy_string}) #OK
  print(r.text)
  r = s.get('https://www.google.com') # KO
  print(r.text)
  </code></pre>
  
  <p>When KO, I have the following exception :</p>
  
  <pre><code>HTTPSConnectionPool(host='www.google.com', port=443): Max retries exceeded with url: / (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authentication Required',)))
  </code></pre>
  
  <p>I looked online but didn't find someone having this specific issue with HTTPS.</p>
  
  <p>Thank you for your time</p>