title: Python Requests problem self._store[key.lower()][1]
body: <pre><code>import requests
  url = &quot;url&quot;
  payload=&quot;payload&quot;
  headers= headers
  response = requests.request(&quot;POST&quot;,url, headers=headers, data=payload)
  authCode = response.headers['authentication]
  
  wurl = &quot;wurl&quot;
  wpayload = &quot;wpayload&quot;
  wheaders = {
         'Cookie': 'Cookie',
         'User-Agent: 'User-Agent',
         'Authentication' : authCode,
          }
  
  wresponse = requests.request(&quot;POST&quot;,wurl, headers=wheaders, data=wpayload)
  </code></pre>
  <p>Hello, I wrote a program like this using the Python Requests module. The problem is that I can get the Authentication code from the headers part of the program first and then I can use it. But I cannot get the data I want from the data in the 2nd wresponse part. The error code is as follows.</p>
  <pre><code>Traceback (most recent call last):
    File &quot;d:\requeststest\app.py&quot;, line 30, in &lt;module&gt;
      getdata = wresponse.headers['Id']
    File &quot;C:\Users\Alp\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\structures.py&quot;, line 54, in __getitem__
      return self._store[key.lower()][1]
  KeyError: 'id'
  </code></pre>
  <p>Although I have ID information in the data I receive, when I try to get ID information, I get this error. But in the first request, I was able to get the authentication code from the headers in the same way. Can you please help?</p>