chartsfert.blogg.se

Selecting all files in delphi download organizer
Selecting all files in delphi download organizer











selecting all files in delphi download organizer

Either way, also set the TIdHTTP.AllowCookies property to True. You can either assign a TIdCookieManager component to the TIdHTTP.CookieManager property, or you can leave it unassigned and TIdHTTP will create a TIdCookieManager object internally. You will have to then either download multiple pieces to separate temp files and then merged them together into the final file when finished, or else create a single pre-sized file and then open multiple TFileStream objects to it at the desired starting offsets for TIdHTTP to write to. To download multiple parts of a resource at the same time, simply run multiple threads, each with its own TIdHTTP component, in parallel. If it does, then you can set the and properties to the desired byte offets as needed when downloading the data from that URL. You can use the TIdHTTP.Head() method to check if the server return a Accept-Ranges: bytes header for a given URL. The TIdHTTP component can download files using byte ranges, if the server supports it. I cannot comment on the other libraries, but Indy supports everything you are asking for. I don't want to use anything WinAPI like, so I don't have to deal with PChars and other non-Delphi things.ġ) Does exactly what I want- downloads multiple pieces with progressbars of many files at the same fileĢ) Something like telnet- so I just write HTTP commands as strings and I get arrays of bytes in return which I can either transform into strings or save into tstreams. What is the best socket to use to work with HTTP protocol? Something easy to use? This is surely not a server problem because I test on localhost. Looks like a problem while waiting for responses. I tried using TTcpClient but sometimes the program freezes and then hits a timeout and I have no idea why. They are all badly documented- very hard to find usage examples. So I think I will just write in with sockets.īut I see there is a plenty of sockets available in Delphi: TTcpClient, TRawSocket, TCGIRequest, TClientSocket and so on.

selecting all files in delphi download organizer

I want to download multiple files in multiple parts at the same time, support resuming, gzip-encoded files, cookies, logging to websites using POST and so on. I have tried Synapse, Indy and ICS and I am not satisfied with them.













Selecting all files in delphi download organizer