O'Reilly logo

Delphi Cookbook - Second Edition by Daniele Teti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using native HTTP(S) client libraries

The RTL provides two components that you can use to send HTTP requests to servers and handle their responses:

  • TNetHTTPClient
  • TNetHTTPRequest

Alternatively, as we saw in Chapter 3, Knowing Your Friends – the Delphi RTL you can use an instance of THTTPClient to manage your HTTP requests.

Why use these components instead of good old TidHTTP from the INDY suite? The reasons have been explained in Chapter 3, Knowing Your Friends – the Delphi RTL however, in this recipe we'll use the new HTTP client to show how much the deployment is simplified, also in mobile apps, using these new components instead of the INDY ones, at least for HTTP communications.

Long story short, Embarcadero developed a native HTTP client library ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required