Вот сам код
import requests as r
url = 'https://login.vk.com/?act=login'
headers = {
'Host': 'login.vk.com',
'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Accept-Encoding': 'gzip, deflate, br',
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Length': 178,
'Referer': 'https://vk.com',
'Cookie': '',
'Connection': 'keep-alive',
'Upgrade-Insecure-Requests': 1
}
res = r.get(url, params={
'login': login,
'pass': password,
'm': 1
}, headers=headers)
print (res.text)
В ответ я получаю:
'Connection aborted.', RemoteDisconnected('Remote end closed connection without response'
Что я делаю не так?