Hi @voracityemail - sorry for the delay in replying - I have been diligently going through your example. Given I did not know Curl I had to learn that and I think that was both good and bad.
On the plus side I have now managed to get the file I need via a Curl command which means I need to translate that into Google Apps. e.g there is a redirect on my “Curl https://document-api.companieshouse.gov.uk/document/jANs6mWaWVOvb0Dd292JxysyB_l-clxHyQ-6uNHuH0A/content -u MY_KEY: -k -v” when using ‘-k -v’ the redirect shows but my Google Apps script which is supposed to report redirects is not showing it.
The redirect also gave me some challenges but I have overcome them in Curl - just need to translate into GA.
When I have it all working in a GA script I am happy to share it here - if anyone needs it.