Updated Curlpas anyone? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- kpeters58 · 2016-07-25 16:03 Just downloaded CurlPas and saw it's from 2005 - so no surprise that it breaks all over the place when trying to compile with 1.6. Does anybody have an updated version? ---------------------------------------------------------------------- Thaddy · 2016-07-25 18:04 You don't need it. You'll probably already have it... Curl bindings  come as standard with FreePascal and is under packages/libcurl. A little while ago (less than a year) I submitted a patch to get the examples working for Windows too (applied in trunk by Florian) and at that time I also checked en tested if there was major funtionality missing: there wasn't. It may have a refresh when I have time, but there really is no need for it except for SSL protocol related support that definitely needs updating. I have some internal patches for that, but it still needs work at places I don't need myself and it has no priority. IOW: Curlpas is outdated but the standard version in FPC isn't. The libcurl  standard one that is included with FPC is recently tested and compiles without errors for all platforms for which libcurl is supported. If you need help (e.g. enabling a recent feature) , plz ask: there are not many people that use curl on Pascal Platforms, they rather tend to use Pascal native solutions like fcl-web (also standard) or synapse. But I use it myself sometimes. Note that basic URL support is also in Lazarus as standard and takes just the inclusion of lclintf in your project: GetURL etc.... Just as convenient. ---------------------------------------------------------------------- tianya · 2017-08-11 13:35 how to use libcurl in mac os and windows,I have some problems in them. In Mac os:    the lazarus only support i386,but the libcurl is 64 bit. In Windows:    I use the unit,libcurl but the lazarus show error like : can't find libcurl. ---------------------------------------------------------------------- Thaddy · 2017-08-11 13:39 On windows you have to install the proper dll.  See the official website: https://curl.haxx.se/download.html AFAIK on MAC both 32 bit and 64 bit are supported, but you need a 64 bit Lazarus install for the 64 bit libcurl. (of course!) Also note libcurl is not available for Windows in FPC versions before 3.0.2. I enabled it for Windows only last year. See also my previous notes. ---------------------------------------------------------------------- tianya · 2017-08-11 14:36 thank you for your reply ---------------------------------------------------------------------- tianya · 2017-08-11 15:39 Quote from: Thaddy on August 11, 2017, 03:39:41 pmOn windows you have to install the proper dll.  See the official website: https://curl.haxx.se/download.html AFAIK on MAC both 32 bit and 64 bit are supported, but you need a 64 bit Lazarus install for the 64 bit libcurl. (of course!) Also note libcurl is not available for Windows in FPC versions before 3.0.2. I enabled it for Windows only last year. See also my previous notes. I'm Sorry,In windows 32bit system,In the 'C:\lazarus\fpc\3.0.2\units\i386-win32',I cant find libcurl [100%] Skipped package libcurl which has been disabled for target i386-win32 ---------------------------------------------------------------------- Thaddy · 2017-08-12 06:03 You have an old version of Freepascal. libcurl is enabled for win32 in 3.0.2 ---------------------------------------------------------------------- tianya · 2017-08-12 06:34 Quote from: Thaddy on August 12, 2017, 08:03:18 amYou have an old version of Freepascal. libcurl is enabled for win32 in 3.0.2 ,i use the C:\lazarus\fpc\3.0.2\,and the same error in lazarus 1.8rc4 ---------------------------------------------------------------------- Thaddy · 2017-08-12 06:53 Maybe my patch was not backported from trunk after all. That could have been done since I submitted the patch may/june last year, before the freeze for 3.0.2. Anyway, it is just a header file, so copy the sourcecode of the header and it will work. (The example just doesn't work without a small change, but the library will work) ---------------------------------------------------------------------- tianya · 2017-08-12 12:47 how cant i do then?... ---------------------------------------------------------------------- Thaddy · 2017-08-12 12:49 You can... explain? ---------------------------------------------------------------------- tianya · 2017-08-12 13:26 Is there any tutorial 、 sample,or lazarus component about libcurl? ---------------------------------------------------------------------- Almir.Bispo · 2017-08-12 14:37 You can use the Synapse library (http,tcp,etc) http://synapse.ararat.cz/doku.php ---------------------------------------------------------------------- tianya · 2017-08-12 14:56 perfect,Although this is good,  still wants the FPC to support libcurl better