[Chicago-talk] Simulating "Save Link As" in Perl

Vijay Kumar vjcang at gmail.com
Wed Sep 14 02:14:26 PDT 2011

Apologies. Please ignore this mail.
I did a mistake in my testing. It works.


On 14 September 2011 04:50, Vijay Kumar <vjcang at gmail.com> wrote:

> Hi,
>   When I access below $binaryfile_url (some url pointing to a binary file)
> from a web browser, I get HTTP Error 404.
>   However, I can save the binary file to my hard disk by right clicking the
> url and selectung 'Save Link As'.
>   Now, when I try this with LWP::Simple
>       my $status=getstore($binaryfile_url, $download_file_fullpath);
>   it fails with the same 404 error.
>   I want to simulate the 'Save Link As' behavior of the web browser to
> download it programmatically from Perl. Any ideas?
> Thanks a lot


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/chicago-talk/attachments/20110914/b102de32/attachment.html>

More information about the Chicago-talk mailing list