I haven't done anything like this before. Trying to figure it out from scratch. The task is to write code that will receive information from someone else's website on a timer. About how their server is arranged, I do not know anything. Therefore, I would like to know what algorithm to act on? How can I find out how it works and what kind of request should I send? I will implement on javascript.
Now that I have already tried to do. There is a site for applying . The user selects Consulate General of Finland, St. Petersburg and click "Send." Then from the select element, the user selects the purpose of the visit, say, Tourism. At the time of changing the selected item, an inscription appears: either that there are no available dates (as often happens), or displays an available date. This select element has the following property:
onchange="javascript:setTimeout('__doPostBack(\'ctl00$plhMain$cboVisaCategory\',\'\')', 0)"
In the Network tab of the developer’s panel you can see that a post request is being sent. Most of it is occupied by the so-called "Form Data", the content of which is an unreadable combination of characters. And another thing: the request has a cookie, some ASP_session. And also there is a site where such a task has already been done: http://visastat.ru. Actually, having learned about him, I decided for educational purposes to figure out how it works.