kepler has asked for the wisdom of the Perl Monks concerning the following question:
Hi
I'm having some troubles regarding a simple get for an url, https://www.earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_week.atom
Even using this script, I get a null result (in several hosts except one, bluehost):#!/usr/bin/perl use LWP::Simple; use warnings; print "Content-type: text/html\n\n"; my $url = "https://www.earthquake.usgs.gov/earthquakes/feed/v1.0/summa +ry/2.5_week.atom"; my $data = get $url; print "$url\n$data";
Can someone help me out?
Thanks, Kepler
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get url
by huck (Prior) on Apr 29, 2017 at 21:45 UTC | |
by pryrt (Abbot) on Apr 29, 2017 at 22:31 UTC | |
|
Re: Get url
by Discipulus (Canon) on Apr 29, 2017 at 21:33 UTC | |
|
Re: Get url
by shmem (Chancellor) on Apr 29, 2017 at 21:39 UTC | |
|
Re: Get url
by NetWallah (Canon) on Apr 30, 2017 at 01:01 UTC |