curl::option CurlHandle,"MAXREDIRS",3
Pass an integer as parameter. The set number will be the redirection limit. If that many redirections have been followed, the next redirect will cause an error. This option only makes sense if the option FOLLOWLOCATION is used at the same time.