I have just started with some web-scraping. Unfortunately, I am trying to access http://.classic.comunio.de with the following code
self.session = requests.session()
payload = {'login': self.username ,
'pass': self.password,
'action': 'login'}
headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain",
"User-Agent": user_agent}
req = self.session.post('http://'+self.domain+'/login.phtml',headers=headers,data=payload).content
I have checked http://classic.comunio.de about the names of username, password and action. That should be right. Username and password are also correct.
However, when I try to login and I am not forwarded to the next page or I can not get the content of my user profile, which should be possible after logging in.
All help is appreciated, thank you!