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

Vijay Kumar vjcang at gmail.com
Wed Sep 14 01:50:14 PDT 2011


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
VIJAY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/chicago-talk/attachments/20110914/e6f42954/attachment.html>


More information about the Chicago-talk mailing list