in reply to Re^4: How to download or run exe file using rest client.
in thread How to download or run exe file using rest client.
If I run your code as it stands, but with a valid URL as the value for $url it succeeds fine. Therefore the problem is specific to the URL you are actually using. Since you haven't said what that is, it will be hard to help you further.
#!/usr/bin/perl use strict; use LWP::Simple; my $url = "https://www.perlmonks.org/?node_id=1231486;part=1;abspart=1 +;displaytype=displaycode"; ##die "Couldn't get it!" unless defined $content; my $file = "BCM_console.exe"; my $code = getstore($url, "$file"); print "CODE : $code\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: How to download or run exe file using rest client.
by Anonymous Monk on Mar 20, 2019 at 14:36 UTC |