title: Get request works in postman but not with python code - error 404
body: <p>The request below is working in Postman but if I copy the code from Postman to <code>VS Code</code> or <code>PyCharm</code> I get always <strong>HTTP Error 404. The requested resource is not found.</strong> I am running out of ideas, any help is appreciated. I am working behind a proxy but that is well sorted as far as I can see, since I had before the <strong>407 error</strong>, which is solved now. The localhost <code>api</code> is a <code>django api</code> I developed and I get it running from <code>PyCharm</code>.</p>
  <p>import requests</p>
  <pre><code>url = &quot;http://127.0.0.1:8000/api/jobs/&quot;
  payload={}
  files={}
  headers = {
    'Content-Type': 'application/json'
  }
  response = requests.get(url, headers=headers, data=payload, files=files)
  print(response.text)
  </code></pre>