Live user simulation script
I recommend.
There is a remote server that easily delivers data from a file to the browser.
When accessing the same file with a PHP script (for example, file_get_contents($url)), the server returns a 403 error, as it sees that it is not a user, but a script.
Task: You need to write a script that simulates a request to the server from a real user (or adapt some ready-made solution). That is, the script must provide the server with browser headers, cookies, referrer, etc., and in return receive the content and store it in a variable (for example, $data).
This can be implemented using cURL or some similar tool.
The link to the file on the remote server is in the attached text file.
Попробуйте в браузере в консоли на запросе кликнув мышкой , далее скопировать запрос как posix curl. И запустите его в консоли сервера и будет вам счастье)
Щастя не получиться )
Скрипт повинен запускатись по крону, отримувати дані і передавати в інший скрипт для обробки. Оброблені дані будуть по таймауту виводитись на сторінку в браузері.
32 proposals 15:18
Web Programming 26 proposals 30 July
Python 39 proposals 30 July
Bot Development 31 proposals 30 July
Web Programming 67 proposals 29 July