News for hackers. Stuff that matters.
Re:Lazarus – Professional Free Pascal Rad IDE by thijsvandien on Saturday April 23, 2022 @03:01AM (#31132068)
Indy is very popular, especially among Delphi users (shipped with it): https://github.com/IndySockets/Indy.
Re:Lazarus – Professional Free Pascal Rad IDE by edwinyzh on Saturday April 23, 2022 @05:47AM (#31132736)
https://github.com/synopse/mORMot2 Very rich and mature feature-set, with active development and active user forums.
Re:Lazarus – Professional Free Pascal Rad IDE by lmz on Saturday April 23, 2022 @07:36AM (#31133360)
It just seems very odd that (2!) people would recommend an "ORM/SOA framework" when all the poster wanted was an HTTP client library. At least you can link to the HTTP client parts?
Re:Lazarus – Professional Free Pascal Rad IDE by clouddrover on Saturday April 23, 2022 @08:47AM (#31133808)
Here you go:

Mormot 1.18 (stable): https://github.com/synopse/mORMot/blob/master/SynCrtSock.pas

Mormot 2: https://github.com/synopse/mORMot2/blob/master/src/net/mormo...

https://synopse.info/files/html/api-1.18/SynCrtSock.html#THT...

https://synopse.info/files/html/Synopse%20mORMot%20Framework...

They have multiple client implementations. You can pick the one you like (THTTPClientSocket, TWinHTTP, TWinINET, TCurlHTTP, TWinHttpWebSocketClient).

Re:Lazarus – Professional Free Pascal Rad IDE by benibela on Saturday April 23, 2022 @09:42AM (#31134189)
It is because Lazarus/FPC have no package manager to handle dependencies. It is crippling the ecosystem.

If you want to write an oss ORM/SOA framework with HTTP, you cannot use a HTTP client library, because then people cannot compile your framework when they do not have the library installed. You can write in the documentation, they should install the library, but no one reads that. Also, if the library gets an update, it might not be compatible anymore.

So you need to bundle the HTTP client in your framework. Now you could write your own or fork one, but in either case you end up with a framework and its own HTTP client.