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

LWP binary file retrievals?

Thread Next
From:
siren jones
Date:
March 18, 2002 08:01
Subject:
LWP binary file retrievals?
Message ID:
LAW2-F54vHXbgp0UcS300003f94@hotmail.com
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.

-s

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About