 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Thomas Wegner Guest
|
Posted: Sat Nov 13, 2004 4:38 pm Post subject: Re: Indy - how to resume downloads (using HTTP) |
|
|
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
|
Posted: Sun Nov 14, 2004 7:35 am Post subject: Re: Indy - how to resume downloads (using HTTP) |
|
|
"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 |
|
 |
|
|
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
|
|