Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: LWP::UserAgent : setting max_redirect to 0 yields 'Client-Warning: Redirect loop detected

by bliako (Vicar)
on Mar 13, 2018 at 22:00 UTC ( #1210853=note: print w/replies, xml ) Need Help??


in reply to Re^2: 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

That's no problem, I can do that GLADLY.
  • Comment on Re^3: LWP::UserAgent : setting max_redirect to 0 yields 'Client-Warning: Redirect loop detected

Replies are listed 'Best First'.
Re^4: LWP::UserAgent : setting max_redirect to 0 yields 'Client-Warning: Redirect loop detected
by bliako (Vicar) on Mar 13, 2018 at 22:29 UTC

    ... And so if one wants zero redirects, one should set max_redirect to 1 really ...

    NO, that's wrong. Use only  requests_redirectable method.

      imho, max_redirect => 0 should not warn. I'm with AnonyMonk above in that this smells like a bug (whether doc or code, I digress).

      If a parameter such as one that has "max" in its name is set to zero, it should not trigger a warning like this.

      Perhaps there's a good reason for it, but that would make it a doc bug. Otherwise, if I say "max something is zero", then any warnings/errors should be ignored, which would be a code bug.

      After a cursory review, the documentation does not handle this situation, and it should.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1210853]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2019-12-07 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (161 votes). Check out past polls.

    Notices?