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 y开发者_C百科ou can do it in C++, with the static library?
Curl's static library cannot be used in Delphi.
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 .
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.
精彩评论