I
I
Ivan Ivanov2020-01-29 20:01:18
PHP
Ivan Ivanov, 2020-01-29 20:01:18

Vkontakte changed authorization through the main one?

Do not read below, nothing has changed, just changed apache2 to lighttpd on the site and it was necessary to set the necessary rights to the folder with cookies). Authorization in VK works the same way.

Previously, for authorization using php, it was necessary to parse the main input fields ip_h and lg_h from the main input field and send a POST request

$post = 'act=login&role=al_frame&expire=&recaptcha=&captcha_sid=&captcha_key=&_origin=https%3A%2F%2Fvk.com'
. '&ip_h=' . $ip_h
. '&lg_h=' . $lg_h
. '&ul=&[email protected]&pass=password';

to the page https://login.vk.com/?act=login . Today I discovered that it doesn't work. Has anyone solved the problem? Thank you.

ps As far as I understand, after successful authorization, it redirects to a page like https://vk.com/login.php?act=slogin&to=&s=1&__q_ha... . After an unsuccessful one - on https://vk.com/login.php?act=slogin&to=&s=0&m=4&email=

Wangyu, some cookies are set by a js script on the main one, because of this, authorization does not work. Although not a fact ...

pps Tried to clear all VK cookies in chrome, left only:
remixstid
remixgp
remixsid
- authorization was successful.
When accessing the main page, only the remixlhk and remixstid cookies are set.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mahmudchon, 2020-01-29
@mahmudchon

When accessing https://login.vk.com/?act=login , a redirect occurs to https://vk.com/login?&to=&s=0&m=1&email= with code 302.
302 Moved Temporarily (moved temporarily)
For help, 301 - moved permanently. So maybe something will change. But it is not exactly)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question