Add set_max_redirects(INT) to set the number of Location redirects that will be automatically followed.