Link to home
Start Free TrialLog in
Avatar of monir
monir

asked on

HTTP Resume Download

Can I do a HTTP download with "resume download" using any HTTP client socket or any other socket, but without using Wininet API.

Monir.
Avatar of Mohammed Nasman
Mohammed Nasman
Flag of Palestine, State of image

Hello Monir
  Use iedownload, you can download it form this link, and th samples programs with it, and one for resume downloading

http://www.euromind.com/iedelphi/iedownload.htm


Best regards
Mohammed Nasman
Avatar of monir
monir

ASKER

Thank you for your answer, but they use Wininet API, What I want is to do a download by using a socket and HTTP protocol.

Monir
Avatar of monir

ASKER

Thank you for your answer, but they use Wininet API, What I want is to do a download by using a socket and HTTP protocol.

Monir
if you are using Indy, check out TIdHTTP's Request.ContentRangeStart and ContentRangeEnd. Specifying that will allow return the data from the range you specified
Avatar of monir

ASKER

Thank you DragonSlayer
I checked TIdHttp Request, I cound not find ContentRangeStart and ContentRangeEnd in it, I am using the latest version of Indy!!
It has been found in TIdEntityHeaderInfo, could you plase tell how can I use that in HTTP download, just a guidelines please.
Monir.
ASKER CERTIFIED SOLUTION
Avatar of DragonSlayer
DragonSlayer
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of monir

ASKER

Thank you,
I have got the answer now, you got the points,
Could you please tell me how to do the same things with
NetMaster component TNMHttp.

Monir
Avatar of monir

ASKER

That is exaclty what I want, thank you.
Umm... sorry, but I don't use the NetMaster components (in fact, I uninstalled the whole package and the help file).
Hi,
Use TNMFTP instead. It has DownloadRestore method for that purpose.

Regards, Geo
Hi Geo... I think he wants to use HTTP instead :)
Hi DragonSlayer, I don't think that it's possible using TNMHTTP component. That's why I suggested TNMFTP. While I was writing my comment the question was closed by the way.
Avatar of monir

ASKER

"resume download" with FTP (using any socket component) is very easy, but in HTTP is a bit complicated.

DragonSlayer solve it for Indy thank you again.
Monir
Avatar of monir

ASKER

"resume download" with FTP (using any socket component) is very easy, but in HTTP is a bit complicated.

DragonSlayer solve it for Indy thank you again.
Monir