Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by stevieb (Canon)
on Mar 13, 2018 at 23:21 UTC ( [id://1210856]=note: print w/replies, xml ) Need Help??


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

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.

  • Comment on Re^5: LWP::UserAgent : setting max_redirect to 0 yields 'Client-Warning: Redirect loop detected
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-23 08:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found