G
G
GooInLove2015-02-25 20:19:17
Java
GooInLove, 2015-02-25 20:19:17

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

3 answer(s)
A
Alexander, 2015-02-25
Obiedkov @aobiedkov

I would venture to suggest that the browser stores authorization data in cookies and sends them to the server when clicking on this link.

V
Victor, 2015-02-25
@davinctor

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.

N
Nikolai Pavlov, 2015-02-27
@gurinderu

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 question

Ask a Question

731 491 924 answers to any question