I am using LWP::Simple::get($url) library to access data from web pages. The problem is that the get function is not working for the below url. Below is the code snippet:
#!/usr/bin/perl use LWP::Simple; use JSON; use Data::Dumper; my $url = "https://www.cryptopia.co.nz/api/GetCurrencies"; my $json = get( $url); die "Could not get $url!" unless defined $json; my $decoded_json = decode_json($json); print Dumper($decoded_json);
After running this code it gives the below error: Could not get https://www.cryptopia.co.nz/api/GetCurrencies! When i replace the url with :
$url = "https://api.coinmarketcap.com/v1/ticker/"it works fine. Please can you tell me what is the root cause and how I can fix it. Also the url mentioned in the code snippet worked once and now suddenly it does not work.
In reply to LWP::Simple::get($url) does not work for particular urls by ssara
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |