N
N
Nwton2017-01-28 16:38:40
Node.js
Nwton, 2017-01-28 16:38:40

How to request data from a dialog when requesting a page?

Quite often I came across pages that did not return the page until the client entered data into the dialog box. How is it implemented? The order of communication between the client and the server:
1) The client accesses the server by url
2) The server sends the client a request for data input through the browser dialog
3) The client enters the data, sends it to the server
4) The server checks and if the data is correct, sends html
5) When this cookie is not written and when the url is requested again, the procedure is repeated

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2017-01-28
@Nwton

https://www.npmjs.com/package/http-auth

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question