Scott203 has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing a script to download a file from the web to my local server. The problem is that the remote server is incorrectly reporting the content-length of the file as about half of what it really is. LWP will only download the portion of the file specified by the content-length. BUT, that is not the only problem. The remote file has a ".gz" suffix even though it is a text database file. (I assume) this is what causes the (partial) file to be corrupt when it gets to my server.
So far I have tried some of LWP's functions and they are giving me the above problems.
The remote file is at:
http://cpaweb01.planetarion.com/botfiles/galaxy_listing.gzThanks in advance, I hope someone can solve this...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Retrieving a file on the web (NOT so easy)
by tadman (Prior) on Jul 11, 2001 at 08:16 UTC | |
Re: Retrieving a file on the web (NOT so easy)
by Abigail (Deacon) on Jul 11, 2001 at 11:06 UTC | |
Re: Retrieving a file on the web (NOT so easy)
by LD2 (Curate) on Jul 11, 2001 at 08:27 UTC | |
Re: Retrieving a file on the web (NOT so easy)
by voyager (Friar) on Jul 11, 2001 at 08:20 UTC | |
Re: Retrieving a file on the web (NOT so easy)
by bikeNomad (Priest) on Jul 11, 2001 at 08:58 UTC |