title: Why does this proxy require authentication when used from curl but not from python requests?
body: <p>I'm using <a href="https://github.com/abhinavsingh/proxy.py" rel="nofollow noreferrer">https://github.com/abhinavsingh/proxy.py</a>, setting it up with basic auth like so:</p>
  <pre><code>proxy --basic-auth &quot;user:pass&quot;
  </code></pre>
  <p>When I use it with curl, it requires proxy auth as expected:</p>
  <pre><code>curl -I -x localhost:8899 http://example.com  =&gt; 407
  curl -I -x user:pass@localhost:8899 http://example.com =&gt; 200
  </code></pre>
  <p>But when I use it from Python, I can access it without providing any auth:</p>
  <pre><code>import requests
  
  proxies = {
    &quot;http&quot;: &quot;http://127.0.0.1:8899&quot;,
    &quot;https&quot;: &quot;http://127.0.0.1:8899&quot;
  }
  
  
  response = requests.get(&quot;https://www.example.com&quot;, proxies=proxies)
  
  print(response.status_code) 
  </code></pre>
  <p>I get a 200.
  Am I missing something?</p>