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 

HTTP multipart downloads

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
forums@mail.bg
Guest





PostPosted: Fri Jan 21, 2005 12:26 am    Post subject: HTTP multipart downloads Reply with 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

Back to top
Maarten Wiltink
Guest





PostPosted: Fri Jan 21, 2005 4:39 pm    Post subject: Re: HTTP multipart downloads Reply with quote



<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





PostPosted: Sat Jan 22, 2005 9:37 am    Post subject: Re: HTTP multipart downloads Reply with quote




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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc 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.