Thanks for the tip gmargo, I installed your bit of code and it does seem to do what it's intended to do. Even though your code would have helped in the case of the server returning multiple Location headers, which is different from my problem, it did get me a head-start into verifying that my problem is different from what I originally thought it was. I now believe that the server is returning the CORRECT Location headers, which includes 2x 302 forwarding jumps, but I'm not really sure where to go from here since it's reporting "400 URL must be absolute". Any thoughts on general problem solving techniques I can try, things to check, ways to profile and get some information back as to why their server may be responding that way?


In reply to Re^2: LWP::UserAgent and correcting automatic redirection. by Brak
in thread LWP::UserAgent and correcting automatic redirection. by Brak

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.