Solved

kylix download component

Posted on 2002-04-02
10
309 Views
Last Modified: 2011-04-14
hello I need a kylix component which has the next features:
1.it receives a full url file and downloads the file to the computer.
2.it supports proxies
3.resume supported
4.it gives the download rate each second(k/sec)

300 points are guaranteed to the person who gives the link to this component.
0
Comment
Question by:f15iaf
  • 5
  • 4
10 Comments
 
LVL 17

Expert Comment

by:inthe
ID: 6913796
hi er getright :)

for kylix i think the closest/most supported you will find is one of the winshoes or ics components.

>> receives a full url file and downloads the file
 what protocol? ftp/http well above comps do both..

>> supports proxies
both do

>> resume supported
they support it but note resume only works if the server your downloading from supports it.

>> gives the download rate each second(k/sec)
maybe a little coding required (filesize you can get from server and do some math filesize - how much is downloaded so far)it could cost alot for more advanced components ,i never seen any that give the download rate/speed and some of the advanced comps were going for $700.00 [ouch]
0
 
LVL 3

Author Comment

by:f15iaf
ID: 6914046
thanx a lot let me evaluate your components and then i give you points
0
 
LVL 3

Author Comment

by:f15iaf
ID: 6914408
Sorry it does not meet my needs
1.ics do not suppoert kylix right now they have only
Ticssocket component for kylix

2.winshoes
   Tidhttp has support for proxy but
   Tidftp has no support for proxy
3.
   and certeinly they have no resume support to any
   kind of sites so ics and winshoes are not what i need.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 17

Expert Comment

by:inthe
ID: 6917014
hi,
the proxy part gonna kill it but some more peices :

1:
 oops sorry just had a look now at ics for kylix ,didnt realise they hadnt ported much yet.

indy looks alot more promising though,

2 : i gather they are working on it (indy)

3:
>> and certianly they have no resume support to any

yeh they do ,

http:

TIdHttp.Request.ContentRangeStart := whereveryourupto;
TIdHttp.Request.ContentRangeEnd := can leave empty or use .head to get full size
TIdHTTP.Get;

ftp:

if TIdFTP.ResumeSupported then
TIdFtp.Get(somefile, somestream, true);

[ same thing for resume with ics (under windows). ]


with proxy ive never had any dealings with but maybe you know if it is possible to find another comp to go with these to do the proxy part? if so that would sort ftp and http.

note also for the bytes per second part:
the OnWork event has the number of bytes transfered
OnWorkBegin event has the total to be transferred

basically indy will do it all except for proxy :(
0
 
LVL 17

Expert Comment

by:inthe
ID: 6917044
hold the boat
 i was about to post winsock in newsgroup and just found this :

Proxy support for TIdFTP has been added to Indy 9.0.2-B, available on the
FTP site at ftp://indy90:indy90@ftp.nevrona.com.  It can be used like this:

with IdFTP1 do
begin
    Host := 'ftp.nevrona.com';
    Username := 'indy90';
    Password:= 'indy90';

    ProxySettings.ProxyType := fpcmTransparent;

    ProxySettings.Host := 'grumpy.isi.com';
    ProxySettings.Username := 'proxyusr';
    ProxySettings.Password := 'proxypwd';

    try
        Connect(True);
        ...
    except
        on E: EIdException do
        ...;
    end;
end;

Have a peek at TIdFtpProxyType for the supported proxy connection modes

for http:

idHTTP1.ProxyParams ..


0
 
LVL 17

Expert Comment

by:inthe
ID: 6917052
>>>was about to post winsock in newsgroup

should read
  was about to post in winsock newsgroup

borland.public.delphi.internet.winsock is where the indy fella's hang out so if you have any specific q's they should be able to help better.
0
 
LVL 3

Author Comment

by:f15iaf
ID: 6919084
ok indy 9.0 does not yet for kylix second
is it resume supported
0
 
LVL 17

Expert Comment

by:inthe
ID: 6919578
yeh see my second post.

ps,what you running kylix2 on?did it install ok
i havent got it to install yet on mandrake 8.2 ,though kylix1 works good on mandrake 8.1  
0
 
LVL 3

Author Comment

by:f15iaf
ID: 7198934
I've solved the problem by making my own component since nobody answered my question i'm deleting this question
0
 

Accepted Solution

by:
Jgould earned 0 total points
ID: 7198989
Hi f15iaf,

Since there is information in this thread that could help others i move it to PAQ and refund your points

points for Inthe here
http://www.experts-exchange.com/delphi/Q_20332445.html

**JGould-EE Moderator**
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question