I installed LWP::Parallel::UserAgent and ran your code with and without the commented line. It worked both times.

I modified the output loop so it would just display the content length instead of the whole page content, and I noticed that the offending request actually redirects to one of the other requests in the list, so I wondered if the module is pruning duplicates. I set your $pua->duplicates() call to both 0 and 1, and the only difference it made was that the one request came back "302: Found" instead of "200: OK". I also tried changing the timeout value to a few different things (0, 1, 2, 10), and that never made a difference either.

I recommend you look at your network. Since this is an advertising URL that you're hitting, I wonder if a proxy is helpfully filtering it for you (whether you explicitly go through a proxy or not).

As an aside, I also recommend use instead of require, and I recommend you use strict and use warnings.


In reply to Re: trouble with redirecting by kyle
in thread trouble with redirecting by confused_programmer

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.