 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
forums@mail.bg Guest
|
Posted: Fri Jan 21, 2005 12:26 am Post subject: HTTP multipart downloads |
|
|
how to do it?
is there some free/open source software or any examples
PS: multipart = for one file, few connections that downloads different
parts of the file
|
|
| Back to top |
|
 |
Maarten Wiltink Guest
|
Posted: Fri Jan 21, 2005 4:39 pm Post subject: Re: HTTP multipart downloads |
|
|
<forums (AT) mail (DOT) bg> wrote
| Quote: | how to do it?
is there some free/open source software or any examples
PS: multipart = for one file, few connections that downloads
different parts of the file
|
How are you making HTTP connections now? If you have a HTTP client
component with source and want to modify it to download ranges,
I think it's as simple as adding a header to the request that
specifies which bytes you want sent to you. That requires no more
than two properties (start and length, or begin and end) and most
likely a one-line modification to the request construction code.
That doesn't in itself make several connections at once, but it's
a start. You could build a component around it that does.
Groetjes,
Maarten Wiltink
|
|
| Back to top |
|
 |
forums@mail.bg Guest
|
Posted: Sat Jan 22, 2005 9:37 am Post subject: Re: HTTP multipart downloads |
|
|
Maarten Wiltink wrote:
| Quote: | How are you making HTTP connections now? If you have a HTTP client
component with source and want to modify it to download ranges,
I think it's as simple as adding a header to the request that
specifies which bytes you want sent to you. That requires no more
than two properties (start and length, or begin and end) and most
likely a one-line modification to the request construction code.
That doesn't in itself make several connections at once, but it's
a start. You could build a component around it that does.
Groetjes,
Maarten Wiltink
|
you are right, I found props ContentRangeStart/End in TidHTTP...
but.... I have another problem. I could not find any demo about simple
downloading with idHTTP. I am trying this code
S := TFileStream.Create('.tmptmp.rar', fmCreate );
try
H1.Get(URL, S);
finally
S.Free;
end;
....dont know is it right way to do this. I expected to get whole file,
but result was only portion of the file - with size of buffer. How to
get whole file?
|
|
| 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
|
|