Notice that with LWP the redirect to pair.com fails with 500; but succeeds with wget. It looks for all the world like pair.com is rejecting LWP's useragent string?

C:\test>perl -S -MDevel::VersionDump lwp-request -Ed http://cpan.straw +berryperl.com/authors/01mailrc.txt.gz Perl version: v5.18.4 on MSWin32 (C:\Perl5.18\perl\bin\perl.exe) Carp - 1.3301 Config - 5.018004 Config_git.pl - Unknown Config_heavy.pl - Unknown Devel::VersionDump - 0.02 DynaLoader - 1.18 Encode - 2.62 Encode::Alias - 2.18 Encode::Byte - 2.04 Encode::Config - 2.05 Encode::Encoding - 2.07 Encode::Locale - 1.03 Exporter - 5.70 Exporter::Heavy - 5.70 File::Basename - 2.84 Getopt::Long - 2.42 HTTP::Date - 6.02 HTTP::Status - 6.03 List::Util - 1.41 Scalar::Util - 1.41 Time::Local - 1.2300 URI - 1.64 URI::Escape - 3.31 URI::Heuristic - 4.20 Win32::API - 0.79 Win32::API::Struct - 0.65 Win32::API::Type - 0.69 XSLoader - 0.16 base - 2.18 bytes - 1.04 constant - 1.27 overload - 1.22 overloading - 0.02 strict - 1.07 vars - 1.03 warnings - 1.18 warnings::register - 1.02 GET http://cpan.strawberryperl.com/authors/01mailrc.txt.gz User-Agent: lwp-request/6.03 libwww-perl/6.08 302 Found Connection: close Date: Wed, 31 Dec 2014 10:30:00 GMT Location: http://cpan.pair.com/authors/01mailrc.txt.gz Server: Apache Vary: Accept-Encoding Content-Length: 228 Content-Type: text/html; charset=iso-8859-1 Client-Date: Wed, 31 Dec 2014 10:30:22 GMT Client-Peer: 69.163.152.144:80 Client-Response-Num: 1 Title: 302 Found GET http://cpan.pair.com/authors/01mailrc.txt.gz User-Agent: lwp-request/6.03 libwww-perl/6.08 500 Can't connect to cpan.pair.com:80 Content-Type: text/plain Client-Date: Wed, 31 Dec 2014 10:30:22 GMT Client-Warning: Internal response C:\test>wget http://cpan.pair.com/authors/01mailrc.txt.gz --2014-12-31 10:31:47-- http://cpan.pair.com/authors/01mailrc.txt.gz Resolving cpan.pair.com... 66.39.76.93 Connecting to cpan.pair.com|66.39.76.93|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 228720 (223K) [application/x-gzip] Saving to: `01mailrc.txt.gz' 100%[=====================>] 228,720 240K/s in 0.9s 2014-12-31 10:31:49 (240 KB/s) - `01mailrc.txt.gz' saved [228720/22872 +0] C:\test>

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re^2: cpan & strawberry perl errors by BrowserUk
in thread cpan & strawberry perl errors by BrowserUk

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.