kalyanrajsista has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks
I'm trying to download an excel file from a website using WWW::Mechanize module, but downloaded file is of binary format. How can I get the actual content of Excel file and save it to the disk.
use strict; use WWW::Mechanize; my $browser = WWW::Mechanize->new(); my $xlurl = "http://some.site.com/InfoCenter/Documents/COPY%20OF%20KIN +%2014DAYS%20%20%2001%20%20JUNE%20%20%202010.xls"; my $xls = $browser->get($xlurl); my $xlcontent=$xls->as_string();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Download excel from website and save it to disk
by Gangabass (Vicar) on Jun 01, 2010 at 08:48 UTC | |
|
Re: Download excel from website and save it to disk
by Corion (Patriarch) on Jun 01, 2010 at 08:56 UTC | |
by kalyanrajsista (Scribe) on Jun 01, 2010 at 09:21 UTC | |
by Corion (Patriarch) on Jun 01, 2010 at 09:23 UTC | |
|
Re: Download excel from website and save it to disk
by sierpinski (Chaplain) on Jun 01, 2010 at 12:13 UTC | |
by marto (Cardinal) on Jun 01, 2010 at 12:37 UTC |