in reply to Re^2: How to download or run exe file using rest client.
in thread How to download or run exe file using rest client.
Hello again Anonymous Monk,
I think I understand what you mean. I assume you are able to see the output of the page that you want to download but how to store it locally you mean.
There are many ways to do it, sample below:
#!/usr/bin/perl use strict; use warnings; use REST::Client; #The basic use case my $client = REST::Client->new(); $client->GET('https://perlmaven.com/'); print $client->responseContent(); __END__ $ perl test.pl > index.html
Further documentation for reference of alternative ways how do i redirect STDOUT, STDIN, or STDERR to a FILE? and https://perlmaven.com/simple-way-to-fetch-many-web-pages.
Let me know if still is not clear. BR / Thanos
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to download or run exe file using rest client.
by Anonymous Monk on Mar 20, 2019 at 11:35 UTC | |
by hippo (Archbishop) on Mar 20, 2019 at 13:21 UTC | |
by Anonymous Monk on Mar 20, 2019 at 14:36 UTC | |
by thanos1983 (Parson) on Mar 20, 2019 at 12:27 UTC | |
by Anonymous Monk on Mar 20, 2019 at 11:44 UTC | |
by poj (Abbot) on Mar 20, 2019 at 13:08 UTC | |
by Anonymous Monk on Mar 20, 2019 at 14:30 UTC | |
by poj (Abbot) on Mar 20, 2019 at 15:18 UTC | |
|