develooper Front page | perl.beginners | Postings from March 2002

LWP binary file retrievals?

Thread Next
siren jones
March 18, 2002 08:01
LWP binary file retrievals?
Message ID:
Is it possible to use LWP::Simple to retrieve a binary file (i.e. a .netCDF 
file)?  Using the following code I can retrieve what I'm guessing are parts 
of the file.  That is, what is retrieved is always 3871 bytes even though 
the file is actually much larger.  Worse, I can not read the .netcdf file 
once it is retrieved.   Any ideas why this may be the case?  Or better yet, 
how to grab a binary data file off the web?

#!/usr/gin/perl -w
use strict;
use LWP::Simple;
getstore ('http://www.netcdf_url', 'filename');

Thank you in advance.


Get your FREE download of MSN Explorer at

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About