For the OpenSSL, if you want to use SSL on the IP classes, you just have to link these libraries:
And put these DLLs in the same directory of your application:
For the CURL, the needed liBs are:
And the DLL is:
A sample for CURL is:
Code: Select all | Expand
#include "Fivewin.ch"
#include "Hbcurl.ch"
FUNCTION MAIN()
CURL_GLOBAL_INIT()
? CALLPHP( "https://www.fivetechsoft.com/getip.php" )
CURL_GLOBAL_CLEANUP()
RETURN NIL
FUNCTION CALLPHP( cUrl )
LOCAL hCurl, cRet
hCurl = CURL_EASY_INIT()
IF !EMPTY( cUrl )
CURL_EASY_SETOPT( hCurl, HB_CURLOPT_URL, cUrl )
CURL_EASY_SETOPT( hCurl, HB_CURLOPT_DL_BUFF_SETUP )
CURL_EASY_SETOPT( hCurl, HB_CURLOPT_SSL_VERIFYPEER, 0 )
IF CURL_EASY_PERFORM( hCurl ) = 0
cRet = CURL_EASY_DL_BUFF_GET( hCurl )
ENDIF
CURL_EASY_CLEANUP( hCurl )
ENDIF
RETURN cRet