Skip to content
Mercury13 edited this page Jan 1, 2020 · 39 revisions

About curl4delphi

Curl4delphi is a simple non-visual libcurl binding for Embarcadero Delphi.

  • Supports Delphi XE2+; no legacy ANSI versions. By the way, it was created because all known bindings are designed for old ANSI Delphi.
  • Type-safe. cURL relies on CURLoption, etc. to detect types, I added another layer, separate enums for separate types.
  • No C++ Builder in mind. Of course, Pascal → C++ converter works, but patterns of C++ code are different, and, after all, you can use raw C interface or take any C++ binding.
  • Windows only. I don’t know what to do with MacOS, and, of course, mobile platforms do not support C code (which is cURL).
  • As light as possible. As cURL copies its string settings inside, I do not keep them in ICurl.
  • Based on ref-counted interfaces.
  • Supports >2G files (in upcoming 0.3 “Tokyo” release).
  • Has a simple Unicode layer that’s currently absent in cURL.

Wiki will always lag behind, so the newest documentation is source code itself!

Where to get cURL DLLs?

I use those.

“Light” OpenSSL is enough, you need libcrypto, libssl and mcvcr120. Warning: install DLLs into OpenSSL binaries directory, they are easier to find, and you’ll forget nothing while deploying your software.

ZLIB is compiled into cURL by Viktor Szakáts and unneeded as separate DLL, but versions from other contributors may require it.

Warning: as wiki lags behind, some day newer version can appear at cURL download page. I can only say that I work with 7.56.1, and it is tested somehow.

UPD 2020. You can find a good OpenSSL that does not require bulky Microsoft runtimes in MSYS2.

pacboy sync mingw-w64-i686-openssl mingw-w64-x86_64-openssl

cURL too, but I do not recommend it (it consists of multiple DLLS), it’s better to download it at home page.

More links

Clone this wiki locally