Hello everyone,
I am trying to write an app to connect with filemaker.
The problem that i am having is with URLConnection.
The cURL code to connect to the DB is:
curl --location --request POST ‘https://address/fmi/data/vLatest/databases/Test%20Xojo/sessions’
–header ‘Content-Type: application/json’
–header ‘Authorization: Basic username/passHash’
The way i translate it to URLConnection is this:
WebConnection.SetRequestContent( “{}”,“application/json”)
WebConnection.SetRequestContent("",“Authorization: Basic username/passHash”)
WebConnection.Send(“POST”, “https://address/fmi/data/vLatest/databases/Test%20Xojo/sessions”)
The FM database responds but give me error. I tried other permutations but the same.
Am i doing it wrong?
Thanks in advance for any guidance