So I am trying to log into and navigate to a page using python and requests. I'm pretty sure I am getting logged in, but once I try to navigate to a page the HTML I print from that page states you must be logged in to see this page.
Here is my code to log in.
payload = {
'business_user_session[email]': 'some_email',
'business_user_session[password]': 'some_pass'
}
with session() as c:
r = c.post('https://my.example.com/login', data=payload)
r2 = c.get('https://my.example.com/transactions')
#print r.headers
print r2.text
Any help or ideas would be great!