Skip Menu |

This queue is for tickets about the LWP-Online CPAN distribution.

Report information
The Basics
Id: 114154
Status: new
Priority: 0/
Queue: LWP-Online

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.08
Fixed in: (no value)



Subject: Online check may not work anymore
On one of my smoker systems online() reports false, which is wrong. Here's the state of the checks: * http://www.msftncsi.com/ncsi.txt -> works * http://google.com/ -> content is fetched, but the content check fails * http://yahoo.com/ -> fails because of SSL certificate problems * http://amazon.com/ -> returns a 503 Service Unavailable page * http://cnn.com/ -> not checked, because we had already three bad results Maybe Amazon does not like the User-Agent header. I get a 503 response also with: lwp-request -H'User-Agent: LWP::Simple/6.15 libwww-perl/6.15' -eS http://www.amazon.com The slightly different standard User-Agent header of lwp-request still works. The reason for the SSL certificate problems is described here: https://github.com/gisle/mozilla-ca/pull/5
On 2016-05-03 17:03:52, SREZIC wrote: Show quoted text
> * http://google.com/ -> content is fetched, but the content check > fails
The content check fails because www.google.com is redirected to www.google.de (probably because of a GeoIP mapping or so), and this site has German content. So the text "About Google" is missing here, it's "Über Google" instead.