title: Validate if login happened using requests module in python 2.7
body: <p>I am trying to login-in into a website using Python requests module.
  Website : <a href="http://www.way2sms.com/" rel="nofollow noreferrer">http://www.way2sms.com/</a></p>
  
  <p>I use <strong>POST</strong> to submit the form data. Following is the code that is use.</p>
  
  <pre><code>import requests as r
  URL = "http://www.way2sms.com"
  data = {'mobileNo':'###','password':'#####'}  
  header={'User-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.42 Safari/537.36'}
  sess = r.Session()
  x = sess.post(url , data= data , headers = header)
  print x.status_code()
  </code></pre>
  
  <p>I don't seem to find a way to validate if the login was successful or not. Also the Response is always 200 whether if I enter the right login details or not.
  My whole intention is to login-in and then send text messages using this website(I know that I could have used some API). But I am unable to know if I have logged-in successfully or not.
  Also this website uses some kind of <strong>JSESSIONID</strong> (don't know much about that) to maintain the session.</p>