http://www.perlmonks.org?node_id=1210926


in reply to Re: LWP::UserAgent : setting max_redirect to 0 yields 'Client-Warning: Redirect loop detected
in thread LWP::UserAgent : setting max_redirect to 0 yields 'Client-Warning: Redirect loop detected

I surmise that the OP's objective is to say: "if you're handed a 302, don't do it. At all."