in reply to Re: cpan & strawberry perl errors
in thread cpan & strawberry perl errors
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>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: cpan & strawberry perl errors
by Anonymous Monk on Dec 31, 2014 at 10:55 UTC | |
by BrowserUk (Patriarch) on Dec 31, 2014 at 11:05 UTC | |
by Anonymous Monk on Dec 31, 2014 at 11:13 UTC | |
by BrowserUk (Patriarch) on Dec 31, 2014 at 11:08 UTC | |
by Anonymous Monk on Dec 31, 2014 at 11:18 UTC | |
by Anonymous Monk on Dec 31, 2014 at 11:25 UTC | |
by BrowserUk (Patriarch) on Dec 31, 2014 at 11:21 UTC | |
by Anonymous Monk on Dec 31, 2014 at 11:29 UTC | |
|