title: How do I check whether or not I'm logged in or not?
body: <p>I want to test whether or not this request worked or not. is there a way to check the html or do something like geturl() while using session on requests?</p>
  
  <pre><code>#!/usr/bin/env python 2.7.11
  #
  import requests
  
  
  headers = {'User-Agent': 'Mozilla/5.0'}
  
  cookie = {'enwiki_session': '17ab96bd8ffbe8ca58a78657a918558'}
  
  
  url = 'https://127.0.0.1/login.php'
  
  
  payload = {'user': 'admin','pass': 'admin123'}
  
  
  Page = requests.Session()
  Page.post(url,headers=headers,cookies=cookie,data=payload)
  
  #print Page.content
  #print Page.geturl()
  </code></pre>