Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Resuming a download (or partial download)

Reply
Thread Tools

Resuming a download (or partial download)

 
 
Anonymous
Guest
Posts: n/a
 
      07-16-2005
Please could someone point me to what protocol is used (and, I hope,
implemented in Perl) to resume a filedownload, or to obtain a particular
missing part of a long file

--
Mark R. Diamond



 
Reply With Quote
 
 
 
 
attn.steven.kuo@gmail.com
Guest
Posts: n/a
 
      07-17-2005
Anonymous wrote:
> Please could someone point me to what protocol is used (and, I hope,
> implemented in Perl) to resume a filedownload, or to obtain a particular
> missing part of a long file
>



Is this a stealth CGI question? HTTP/1.1 allows one to
make range requests. Viz.,

http://www.w3.org/Protocols/rfc2616/...4.html#sec14.5

http://www.w3.org/Protocols/rfc2616/....html#sec14.27

http://www.w3.org/Protocols/rfc2616/....html#sec14.35

--
Hope this helps,
Steven

 
Reply With Quote
 
 
 
 
Jürgen Exner
Guest
Posts: n/a
 
      07-17-2005
Anonymous wrote:
> Please could someone point me to what protocol is used (and, I hope,
> implemented in Perl) to resume a filedownload, or to obtain a
> particular missing part of a long file


Your question is confused.
You use a protocol to communicate between two processes or programs, e.g. a
server and a client. There are many, many different protocols, many are
supported by Perl. If you tell us which protocol you are using, then we may
be able to tell you if there is a Perl module supporting that particular
protocol. Or even better just search CPAN for yourself.
Now, if a particular protocol supports a "resume" command is a totally
different question and depends on the particular protocol. Many do not.
Please see the definition of your protocol.

jue


 
Reply With Quote
 
Joe Smith
Guest
Posts: n/a
 
      07-17-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> Anonymous wrote:
>>Please could someone point me to what protocol is used (and, I hope,
>>implemented in Perl) to resume a filedownload, or to obtain a particular
>>missing part of a long file

>
> Is this a stealth CGI question? HTTP/1.1 allows one to
> make range requests. Viz.,
>
> http://www.w3.org/Protocols/rfc2616/...4.html#sec14.5
> http://www.w3.org/Protocols/rfc2616/....html#sec14.27
> http://www.w3.org/Protocols/rfc2616/....html#sec14.35


And if it is a stealth FTP question, the equivalent of

linux% man ftp
reget remote-file [local-file]
Reget acts like get, except that if local-file exists and is
smaller than remote-file, local-file is presumed to be a par-
tially transferred copy of remote-file and the transfer is
continued from the apparent point of failure. This command
is useful when transferring very large files over networks
that are prone to dropping connections.

in perl is

linux% perldoc Net::FTP
get ( REMOTE_FILE [, LOCAL_FILE [, WHERE]] )
Get "REMOTE_FILE" from the server and store locally. "LOCAL_FILE"
may be a filename or a filehandle. If not specified, the file will
be stored in the current directory with the same leafname as the
remote file.
If "WHERE" is given then the first "WHERE" bytes of the file will
not be transfered, and the remaining bytes will be appended to the
local file if it already exists.


So, in order to determine what the client needs to do, first you
need to determine what type of server you are downloading from.
-Joe
 
Reply With Quote
 
Anonymous
Guest
Posts: n/a
 
      07-18-2005
Thanks to all. The information about the confused nature of my question was
also helpful because it clarified a distinction of which I was unaware

--
Mark R. Diamond


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Partial 1.0 - Partial classes for Python Thomas Heller Python 13 02-08-2007 08:12 PM
Re: Partial 1.0 - Partial classes for Python J. Clifford Dyer Python 0 02-08-2007 05:29 PM
Why? Partial Class within a Partial class Billy ASP .Net 2 02-01-2006 09:10 AM
Resuming scroll position Emmanuel ASP .Net 4 06-03-2005 02:55 PM
Dell laptop loses (won't re-establish) wireless connection when resuming from standby Oxford Systems Computer Support 7 03-14-2005 03:23 AM



Advertisments