Answer the question
In order to leave comments, you need to log in
Java authorization VKontakte (noAPI), how?
I'm trying to log in to VKontakte without the API. I have a link like
https://m.vk.com/login?role=fast&to=&s=1&__q_hash=...
If I insert it manually into the browser, then I go under my account, but if I just get it with GET, I get login page content. What could be the problem?
Answer the question
In order to leave comments, you need to log in
I would venture to suggest that the browser stores authorization data in cookies and sends them to the server when clicking on this link.
I can assume that VK determines from which device they climb to it. For example, when you are sitting on a PC, but on m.vk.com, he still writes that you are sitting on a PC. Maybe the problem is in the http headers, which determine some information about the user.
The problem is that your browser and the one that makes your GET have different cookie storage.
In order to log in from the code, you need to either reset the cookies from the browser, or log in again and save your cookies for the program.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question