in reply to
Re: download part of remote files
in thread download part of remote files
I know that LWP can be used to download files from a remote server, something like:
$file = HTTP::Request->new(GET => 'http://www.server.com/filename.mp3'
The last 128 bytes of an mp3 contain information about the file such as length, artist, song, etc. I want to download only the last 128 bytes so I can get to this information and store it in a mysql database.
So I guess my question is, what do I replace that line of code with so it only gets the last 128 bytes?