I am using curl to download thousands of avatars, but unfortunately the website's images are protected by login credentials (If you go to an image URL and are not logged in you get a default avatar). I have the ability to login but cannot find a method to load those credentials into curl. Would there be a way to use my cookies file to bypass this protection?
Curl Command:
curl 'https://stratus.pnbhs.school.nz/pluginfile.php/[42000-45000]/user/icon/pnbhs/f2' -o '#1'.jpg