Answer the question
In order to leave comments, you need to log in
How to download a file by krone, taking into account authorization in the personal account on the site?
Good day.
The situation is that we download the prices of suppliers according to the krone, everywhere the links are direct and normal.
However, the well-known KOMS ( komus-opt.ru/) gives out a link inside the personal account komus-opt.ru/personal/download_pricelist.php, through which the file is downloaded. Everything would be fine, but the download starts only if you are authorized in your personal account. Otherwise, the link won't even open.
Accordingly, as I understand it, the cron task should be using CURL and authorization in the personal account. I re-read the sea of fakes and realized that you need to create a php file and open it with wget, and inside the php file there is already a code responsible for authorization and downloading the price list.
Please help, shoveled the sea of literature, nothing comes out. But I'm sure that the code is not so complicated.
Komus authorization page ( komus-opt.ru/personal/)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question