I have a Delphi program in which I need to use Curl, but I do not want to redistribute the curl DLL with it (and I don't want to add the DLL as a resource and write it to a file at runtime and do it that way). With the Curlpas library, you have to use the DLL. Is there any way to use Curl with Delphi in the same way you can do it in C++, with the static library?
Asked
Active
Viewed 3,563 times
0
-
3If you don't get a direct answer, you might try WinInet, Synapse, ICS, or Indy as alternatives. All work with Delphi, and none requires distributing a DLL (unless you need SSL). – Rob Kennedy Feb 14 '11 at 03:26
-
@Rob Thanks very much, I've actually already looked at WinInet and Synapse and they look good, but I wanted to give Curl one last chance since I already know how to use it. – Kokonotsu Feb 14 '11 at 03:31
-
for small amounts of code you can sometimes compile with bcc32 and link the resulting .obj files. It's often quite a challenge. This code does not look amenable to this approach. – David Heffernan Feb 14 '11 at 07:43
3 Answers
2
Just use CURL for Windows , put in the Windows folder http://curl.haxx.se/dlwiz/?type=bin&os=Win64&flav=- and try to call it using console method using Delphi .

akunyer
- 107
- 11
2
Curl's static library cannot be used in Delphi.

Remy Lebeau
- 555,201
- 31
- 458
- 770
-
1Does that mean you cannot compile the C code and link the .obj files directly, either? – Rob Kennedy Feb 14 '11 at 17:02
1
Do you need curl
or do you need just to perform HTTP requests?
If the latter, you can other component, like those made by Indy components. TIdHTTP allows you to perform GET and POST requests in a single line. It beats having to call cUrl from the command line, unless you need some specific features that Indy doesn't supply.

GolezTrol
- 114,394
- 18
- 182
- 210