title: python requests proxies not working for me
body: <p>My code for reference:</p>
  <pre><code>header = {&quot;Content-Type&quot;: &quot;application/json&quot;}
  proxyDict = {
      &quot;all_proxy&quot;: &quot;http://proxy.com:8080&quot;,
      &quot;http_proxy&quot;: &quot;http://proxy.com:8080&quot;,
      &quot;https_proxy&quot;: &quot;http://proxy.com:8080&quot;,
      &quot;ftp_proxy&quot;: &quot;http://proxy.com:8080&quot;,
      &quot;ALL_PROXY&quot;: &quot;http://proxy.com:8080&quot;,
      &quot;HTTP_PROXY&quot;: &quot;http://proxy.com:8080&quot;,
      &quot;HTTPS_PROXY&quot;: &quot;http://proxy.com:8080&quot;,
      &quot;FTP_PROXY&quot;: &quot;http://proxy.com:8080&quot;
  }
  
  try:
      res = requests.post('slack_url', json={&quot;text&quot;: &quot;text&quot;}, headers=header, proxies=proxyDict, verify=False)
      print('Success!')
  except:
      print(&quot;unable to send a slack message&quot;)
  </code></pre>
  <p>When I run this code it simply runs as if the proxies were never read and times out. However, when I manually set my environment variables it works perfectly fine.</p>
  <p>The issue is that I need this part to run as an airflow service and therefore need the proxy to be set when it is run.</p>
  <p>The only thing I can think of is that the requests library requires an actual IP address and can't use proxy.com (just replacing the company URL, not the actual url I am using). In which case I would need a work around without using the IP.</p>
  <p>Any ideas?</p>