It’s great to be a noob!

It’s great to be a noob! I am embarking on my first FMX cross platform application project, and since that FMX book won’t arrive until August, I dare ask my fellow Delphinauts for some advice.

I need to do JsonRPC (NOT SOAP) over HTTP from the client to our server.

Which is the preferable FMX client side HTTP library?

10 thoughts on “It’s great to be a noob!

  1. Lars Fosdal My suggestions:

    1) Use TRestClient, TRestRequest and TRestResponse of you need to download data from json and show it in tables

    2) Use IdHTTP for post or get requests (json too ofc), it is the best component for network stuff. REST components DO NOT have a good error handling (in particular if you are going to use the async version of the request; actually you will have to use the async version so the request will not run in the UI thread. This is crucial because if you make a request in the UI thread and the request takes a lot of seconds the UI thread freezes ofc and the android os may close your app!! He thinks your app has crashed. Running on a separate thread is good)

    3) Expert Delphi is what you need to get a very good intro to fmx! It is by Pawel Glowacki, I found it really nice and I think it is complete of the main topics for a beginner

  2. Alberto Miola IdHTTP it is, then. I did plan on running it in a background thread. I still need to learn the best way of cross platform signaling, and I think I will be missing OmniThreadLibrary :/

  3. Brett Wilton The IdHTTP also has an async setting and completion event, but I will take a look. I am just slightly worried that there is “too much engineering” in the RestClient to easily adapt it to the POST-based request/response JsonRPC. I already did the server side with the Indy HTTP server to provide a JsonRCP interface for Google Glass apps written in Java.