BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Indy - how to resume downloads (using HTTP)

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Thomas Wegner
Guest





PostPosted: Sat Nov 13, 2004 4:38 pm    Post subject: Re: Indy - how to resume downloads (using HTTP) Reply with quote



Use ranges. You can set the begin of partial download
and the end. When you not send the end, then all from
the begin to filesize was downloaded. Your server must
support partial content!
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://trillian.wegner24.de/cabriometer

"Ralf Hoffmann" <"ralf$"@tmx.de> schrieb im Newsbeitrag
news:41962de3 (AT) newsgroups (DOT) borland.com...
Quote:
I can download files by using GET with Indy's IdHTTP, is there any way to
resume (broken) downloads, i.e. to tell the server to start sending from a
specific position in the file on?

Thanks for any ideas!



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sun Nov 14, 2004 7:35 am    Post subject: Re: Indy - how to resume downloads (using HTTP) Reply with quote




"Ralf Hoffmann" <"ralf$"@tmx.de> wrote


Quote:
I can download files by using GET with Indy's IdHTTP, is
there any way to resume (broken) downloads, i.e. to tell
the server to start sending from a specific position in the file on?

Yes, but only if the server supports HTTP v1.1. If so, then you can assign
the ContentRangeStart and ContentRangeEnd subproperties of the
TIdHTTP.Request property prior to calling Get(). The ContentRangeStart and
ContentRangeEnd subproperties of the TIdHTTP.Response property will be
filled in accordingly to let you know what is actually transferred. If the
server does not support content ranges, then the file will be transferred in
full from the beginning again.


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.