I have a script that uses cURL to log in to a site and read the structure and data of a site, but this recently stopped working due to cURL requests returning a 302\'s error