S
S
skvoshiz2016-06-02 18:22:24
Ruby on Rails
skvoshiz, 2016-06-02 18:22:24

How to send requests to VK via client or server using Node.js or Ruby on Rails?

Hello, I would like to know if this is possible. And do I understand the concept correctly?
Option 1
Sending requests to another site through the client :
- The user enters our site
- Enters his Login and Password from VKontakte - Presses the
"Login" button VKontakte site and is authorized) At the same time, the user, during authorization, can NOT close the site tab , otherwise the authorization process will stop. Option 2 Sending requests to another site through the server : - The user enters our site




- Enters his Login and Password from VKontakte
- Enters a proxy - Presses the " Authorize
" button
Here authorization takes place on the VKontakte website through a proxy proxy. Can you please tell me if I can imagine what's going on? Is that possible? And How? For example, I watched how requests are sent to Node.js using phantomjs both from the proxy and from the client ip, but I don’t know on which side this is done.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2016-06-02
@Rou1997

Node.js works on the server, that is, this is option 2, and option 1 is not possible at all in JavaScript (except if you work with the VK API, and not as you want), but it is possible in Flash, although you still can’t prevent closing the tab, or as a browser extension, but this is essentially an application, not a website.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question