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...
In reply to Retrieving a file on the web (NOT so easy) by Scott203
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |