title: how to get response data from a python post request
body: <p>I have an <code>openapi3</code> server running that I'm trying to authenticate with.</p>
  <p>I can do it with <code>curl</code> with no problems</p>
  <pre><code>curl -k -X POST &quot;https://localhost:8787/api/login/user&quot; -H  &quot;accept: application/json&quot; -H  &quot;Content-Type: application/json&quot; -d &quot;{\&quot;username\&quot;:\&quot;admin\&quot;,\&quot;password\&quot;:\&quot;admin\&quot;}&quot;
  
  #and i get the token back
  eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwicm9sZSI6ImFkbWluIiwiaWF0IjoxNjEyODY3NDU3LCJleHAiOjE2MTI4NzEwNTd9.9eFgomcpJbinN7L4X1VOHfZGvJeUvHiv6WPjslba1To
  </code></pre>
  <p>but when using <code>python</code> I only get the response code (<code>200</code>) with no data including the token</p>
  <p>here is my python script</p>
  <pre class="lang-py prettyprint-override"><code>import requests
  import os
  
  url = str(os.environ.get('API_SERVER_URL'))+'login/user'
  head = {'accept': 'application/json', 'Content-Type': 'application/json'}
  data = {&quot;username&quot;: &quot;admin&quot;, &quot;password&quot;: &quot;admin&quot;}             }
  response = requests.post(url, json=data, headers=head, verify=False)
  
  print(response)
  
  </code></pre>
  <p>All I get with this is a 200 response</p>
  <pre><code>&lt;Response [200]&gt;
  </code></pre>