title: Using Python Requests to maintain a session
body: <p>I am trying to login to a website and based on the REST API guide provided, I will be able to receive some data for an application.</p>
  
  <p>The two steps required for me to enact are:
  1. Send a HTTP post command for authentication.
  2. Send a GET command for receiving the data.</p>
  
  <p>When I send the post command using python requests, i receive the required json response showing my login rights. e.g. role admin.</p>
  
  <p>However, when I perform the get command after, it doesn't retrieve the data but sends an HTML form showing that I require authentication even though I have authenticated already.</p>
  
  <p>Has anyone encountered this and how will I be able to solve it?</p>
  
  <p>I am working on this for a customer and as a result, cannot post the actual login I am using and url and will hence replace this with my name with the code I will display.</p>
  
  <p>Thanks 
  <a href="https://i.stack.imgur.com/W3Cgn.jpg" rel="nofollow noreferrer">enter image description here</a></p>