[fpc-pascal] How To: Use lib curl example

Anthony Walter sysrpl at gmail.com
Tue Sep 28 09:39:12 CEST 2021


For the benefit of others, there are a few problems with the FPC example
to note.

1) The callback CURLOPT_WRITEFUNCTION should return the number of bytes
handled.
2) You should check the result of curl_easy_perform to determine if
the curl perform operation (HTTP GET) was successful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20210928/dc6be3e6/attachment.htm>


More information about the fpc-pascal mailing list