Hello. Task: there is a link on the page, by clicking on which the file is given. As I tried:
$crawler = $client->getClient()->get($link, [ 'save_to' => storage_path(), ]); Error 403. I tried adding header with referer - it did not help.
$crawler = $client->click($link); It does not give errors, but does not download anything, which is quite logical, since When you click, a dialog with a path selection pops up.
I’m looking a little dry for a solution, so help out ... Thanks in advance.