We can't use TidHTTP in the app to publish in the store apple because they require the support ipV6.On this forum: http://fire-monkey.ru I read that the solution is the use of T(Net)HTTPClientHelp translate this code in C++:

This is not ideal, and will not work on an IPv4 network, only an IPv6 network. But it is all that TIdHTTP supports right now. There is currently some 3rd party effort to make Indy a little smarter in regards to connecting to a hostname when it could resolve to either an IPv4 or IPv6 address. This logic is not integrated into the main Indy release yet.

That is one workaround, yes. But then you are not using Indy anymore, so you would have to re-write any existing TIdHTTP code to use Embarcadero's component instead, which does not have the same interface as TIdHTTP.

Lena wrote:Can I use this code to check connection with TidHTTP in Internet projects iOS and Android?

Technically yes, but again, use brackets only on an IPv6 enabled network. You still need to support IPv4 networks as well. Also, there is no point in using Get() if you are going to ignore the data received. Use Head() instead.

But really, it is redundant to check the connection manually since the web browser is going to do that anyway, so just let the browser handle it. It should report any errors to you. Also, it is very important that you NOT perform blocking operations (like TIdHTTP) on the main UI thread at all on iOS and Android. They must be in a worker thread instead.