For a client, I need to access a certain REST Api they wrote. They do have a SSL verification error. In Postman, I can disable this verification and then it works.
This is the code:
I have tried to add the HU2_ACCEPTALL in Build Configurations, but with it or not, the job just seems to 'hang'. I never get past the Wait For so I never see one of the two logs.
In PostMan with the 'Disable Versification' OFF:
In PostMan with the 'Disable Versification' ON:
Any ideas?
Alwaysbusy
This is the code:
B4X:
public Sub RunRestAPI()
Dim j As HttpJob
j.Initialize("", Me)
Dim jsonB As String = $"{
"otId": "${authCurrentMasterID}",
"task": "push_registrations",
"parameters": {
"date_from": "2021-10-14 00:00:00",
"date_until": "2021-10-15 23:59:59"
}
}"$
j.PostString($"https://sync.onetwo.klanten.webdoos.io/bouwsoft/task/create"$, jsonB)
j.GetRequest.SetContentType("application/json")
Wait For (j) Jobdone(j As HttpJob)
If j.Success Then
Log("Success")
Else
Log(j.ErrorMessage)
End If
j.Release
End Sub
I have tried to add the HU2_ACCEPTALL in Build Configurations, but with it or not, the job just seems to 'hang'. I never get past the Wait For so I never see one of the two logs.
In PostMan with the 'Disable Versification' OFF:
In PostMan with the 'Disable Versification' ON:
Any ideas?
Alwaysbusy