Hi Ivica.
I use Harbour to create and read XML, read JSON files, send XML to server using Curl, and read data from server.
May be this can help you. Here are people with more knowledge on this subject, but this is just for start. Sorry if I write something you already know, but this is how I see what to do.
First you must decide which compiler you will use (MSVC, MinGW, …). I use MinGW 32-bit version as my primary compiler. For some other purpouses I use MSVC 64 bit version.
If you use Windows OS, better is to use 64-bit OS version. I do not use Linux.
Then you must decide how to use (build) Harbour on your computer.
You can:
1.Use precompiled binary version of Harbour 3.2 (I do not use it)
2.Buid Harbour 3.2 from source (I use this option)
3.Use Harbour 3.4 version (I do not use it), fork made by Viktor Szakats. I think it also have binary version, or you can build it from source. Go to https://github.com/vszakats/hb .
If you want to use binary versions of Harbour, then you must find one which is already built with Curl and SSL.
If you want to build Harbour from source, then you must set some environment variables which will guarantee you building it with Curl and SSL.
When building Harbour from source you must decide will you make Curl static linking or not. Static linking is harder to accomplish (I did not used Curl static linking).
Also, you must download and install proper Curl and OpenSSL versions.
As an example, when building Harbour 3.2 from source on Windows PC, you can use next environment variables:
set HB_PATH=c:\harbour
set HB_ARCHITECTURE=win
set HB_COMPILER=mingw
set HB_INSTALL_PREFIX=c:\harbour
set HB_STATIC_OPENSSL=yes
set HB_WITH_OPENSSL=c:\openssl\include
set HB_WITH_CURL=c:\curl\include
You must copy all *.a files from c:\curl\lib folder (if you installed Curl in c:\curl folder) to c:\harbour\lib\win\mingw folder.
You must put libcurl.dll form C:\curl\bin in folder where exists your application .EXE file (if Curl not static linked).
To create XML I use MiniXML, see c:\harbour\contrib\hbmxml.
To read XML I use TXML, , see c:\harbour\contrib\xhb.
To work with JSON, see https://www.kresin.ru/en/hrbfaq_3.html#Doc13 , read topics about hash arrays and JSON. Also read messages on this group.
In harbour-users group you can find many messages on this subjects.
Regards,
Simo.--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/e3bcd257-eb10-4f39-a432-b95678c5092cn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/f22909ec-e9bb-b751-8bbc-6d0476b92970%40engwall.com.
< I decided not to use libcurl but instead call an external curl executable. In this way I was able to update the executable independently from my program where the provider upped the TLS requirements.>
I use both variants. In one application I use only libcurl, working with REST API and all goes very good.
On some other server I could not make one REST API to work with libcurl, so I also used external Curl executable. Example I found in
https://groups.google.com/g/harbour-users/c/KG8nHIJfTRM/m/dQkUtl9PBAAJ .
So only one REST API I send with external Curl executable, but all other works with libcurl.
I send and read XML and JSON files.