Maybe I'm shooting in the wrong direction, but isn't a redirect loop just that? One website issues a redirect to another website, which in turn redirects back to the first website and you're stuck in an endless loop with no hope of reaching either website.

I once caused this on my own website using mod_rewrite to add a '/' to URLs. I mistakenly issued a re-direct with the modified URL instead of just passing through to serve up the page. Firefox got the redirect and carried on with the modified URL ending in '/'. IE got the redirect, stripped the trailing '/' and tried again, and again, and again. It was a very effective IE blocker.

But I guess my point is, I wouldn't be surprised if you came across a mis-configured (intentionally?) web server that's causing a redirect loop so this error must be expected. It may also be that LWP::UserAgent is modifying the URL in some way that keeps the redirect looping.

In reply to Re: redirection loop by ruzam
in thread redirection loop by mrguy123

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.