in reply to Get url

hello kepler

at first glance and using LWP::UserAgent

perl -MLWP::UserAgent -e "print LWP::UserAgent->new->get($ARGV[0])->co +ntent" https://www.earthquake.usgs.gov/earthquakes/feed/v1.0/summary/ +2.5_week.atom Can't connect to www.earthquake.usgs.gov:443 (certificate verify faile +d) LWP::Protocol::https::Socket: SSL connect attempt failed with unknown +errorerror:14090086:SSL routines:SSL3_GET_SERVER_C ERTIFICATE:certificate verify failed at C:/ulisse/strawberry/perl/vend +or/lib/LWP/Protocol/http.pm line 51. #another tool same response: Response code: 500 Response message: Can't connect to www.earthquake.usgs.gov:443 + (certificate verify failed)

But telling LWP::UserAgent to not check ssl LWP::UserAgent->new(ssl_opts => { verify_hostname => 0 }) all is fine:

perl -MLWP::UserAgent -e "print LWP::UserAgent->new(ssl_opts => { veri +fy_hostname => 0 )->get($ARGV[0])->content" https://www.earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week +.atom <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>USGS URL Resolution Error Page</title> [...]

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.