I do not need cookies, and setting the depth to 3 was just a last attempt to get it to work. I got that line from an open source project on github. Neither have any any effect, I have tried with and without those lines.
Could you post an example of how to read the headers of a response? I'm clear on how to set them but not as clear on reading them
http = CreateObject("roUrlTransfer")
response = http.Head()
redirectUrl = response.GetResponseHeaders()["Location"]