I want to make an Http Post request with Bearer Authentication to my api using my Arduino Mkr Wifi 1010, but I couldn't find the appropriate library to do something like this (code generated with one made with Postman):
POST /api/v1/rilevamento/transaction/commit HTTP/1.1
Host: www.....:8082
Authorization: Bearer eyJhb.......
Content-Type: application/json
Content-Length: 233
{
"id": 0,
"dispositivo": "sesto",
"nomeutente": "MyName",
"cognomeutente": "MySurname",
"mailutente": "[email protected]",
"data": "2020-11-23T09:23:03.142+00:00",
"temperatura": 37.5
}
Can you tell me where to find this library? I tried WifiNiNa httpClient, ArduinoHttpClient, HTTPClient and other but I couldn't get any response or even enter in the method of my api on debug.