TNetHttpClient or...

This is the forum for miscellaneous technical/programming questions.

Moderator: 2ffat

TNetHttpClient or...

Postby ingalime » Fri Sep 14, 2018 5:26 am

Hi.
For android project I need use https (Get).
What is more correct to use TIdHttp or THttpClient or TNetHttpClient?
C++ Builder Tokio.
ingalime
Active Poster
Active Poster
 
Posts: 23
Joined: Wed Apr 12, 2017 3:22 am

Re: TNetHttpClient or...

Postby rlebeau » Fri Sep 14, 2018 9:50 am

It is not about what is *correct*. They are all viable options. Use whatever you are comfortable using, and what works for your needs.
Remy Lebeau (TeamB)
Lebeau Software
User avatar
rlebeau
BCBJ Author
BCBJ Author
 
Posts: 1561
Joined: Wed Jun 01, 2005 3:21 am
Location: California, USA

Re: TNetHttpClient or...

Postby ingalime » Wed Sep 19, 2018 6:15 am

I found this information:
1. TIdHttp need for ssl additional files from FTP Indy and for android need Tthread.
2. THttpClient do not need files if use ssl but need also Tthread for android.
3. TNetHttpClient do not need files if use ssl and do not need Tthread because calls are asynchronous.
The conclusion is: easiest to use TNetHttpClient for android. Is it correct for android project?
ingalime
Active Poster
Active Poster
 
Posts: 23
Joined: Wed Apr 12, 2017 3:22 am


Return to Technical

Who is online

Users browsing this forum: No registered users and 19 guests

cron