Jump to content
Tom F

Migrating away from Indy for file downloads

Recommended Posts

To eliminate shipping and updating OpenSSL (ssleay32.dll and libeay32.dll) I plan to move from Indy to THTTPClient for file downloads. 

Should I be using TNetHttpClient rather then THTTPClient?  I'm using HttpAsyncDownloadDemo.dpr as a starting place, although without the Async part.

A majority of my users are on Window 10.

But a very small number are on earlier versions, some even XP.  To be honest, perhaps those users are already experiencing download problems with Indy. It hasn't been reported though.

What kind of support I should expect from Windows for THTTPClient in earlier Windows versions?






 

Share this post


Link to post
On 12/31/2021 at 5:44 PM, Tom F said:

Should I be using TNetHttpClient rather then THTTPClient?

TNetHttpClient is a component that uses THttpClient internally. If you don't need what TNetHttpClient offers then use directly THttpClient.

  TNetHTTPClient = class(TComponent)
  private
    FHttpClient: THTTPClient;

 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×