What i do wrong? In response i get home page code

import requests
headers = {
‘User-Agent’: ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0’

login_data = {

url = ‘https://instaling.pl/teacher.php?page=login
r = requests.post(url=url, data=login_data, headers=headers)


What do you mean by “In response i get home page code”? What response
were you expecting, and what did you get instead?

You don’t have to show the entire result of printing r.text, but
enough for us to understand what you get would be helpful.

Remember that we don’t have actual authentication details (a working
username and password) to run your code and see for ourselves, and
please don’t post the actually authent details. You have to run the code
for us.

You probably need to allow_redirects=True or send the request to: https://instaling.pl/teacher.php?page=teacherActions.
The ?page=login is the view with the login form, the form’s action is set to: ?page=teacherActions.
You can inspect the form in your browser.