user70378: 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": "name@email.it",
    "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.

user69592: The "Authorization" is simply an HTTP header.  So add it in your request like:
http.addHeader("Authorization", token);

The value of "token" is just the string "Bearer " followed by your authorization string.  Don't neglect the SPACE after the word "Bearer".  It will look like:

"Bearer eyJhb......"

On the Arduino MKR WiFi 1010 you use the WiFiNINA library which is slightly different.  Here is some example code:
  if (client.connect(server, 80)) {
    client.println("POST /test/post.php HTTP/1.1");
    client.println("Host: www.targetserver.com");
    client.println(authorizationHeader);
    client.println("Content-Type: application/x-www-form-urlencoded");
    client.print("Content-Length: ");
    client.println(postData.length());
    client.println();
    client.print(postData);
  }

The variable authorizationHeader will have the "Authorization: Bearer xxxxx...." authorization string.
Or you can replace the client.println(authorizationHeader); by:
client.print("Authorization: Bearer ");
client.print(token);

to avoid dealing with concatenations, etc.
client can be an instance of WiFiSSLClient which works with both WiFi101 and WiFiNINA.

70378: <p>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):</p>
<pre><code>    POST /api/v1/rilevamento/transaction/commit HTTP/1.1
Host: www.....:8082
Authorization: Bearer eyJhb.......
Content-Type: application/json
Content-Length: 233

{
    &quot;id&quot;: 0,
    &quot;dispositivo&quot;: &quot;sesto&quot;,
    &quot;nomeutente&quot;: &quot;MyName&quot;,
    &quot;cognomeutente&quot;: &quot;MySurname&quot;,
    &quot;mailutente&quot;: &quot;name@email.it&quot;,
    &quot;data&quot;: &quot;2020-11-23T09:23:03.142+00:00&quot;,
    &quot;temperatura&quot;: 37.5
}
</code></pre>
<p>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.</p>
 69592: <p>The &quot;Authorization&quot; is simply an HTTP header.  So add it in your request like:</p>
<pre><code>http.addHeader(&quot;Authorization&quot;, token);
</code></pre>
<p>The value of &quot;token&quot; is just the string &quot;Bearer &quot; followed by your authorization string.  Don't neglect the SPACE after the word &quot;Bearer&quot;.  It will look like:</p>
<blockquote>
<p>&quot;Bearer eyJhb......&quot;</p>
</blockquote>
<p>On the Arduino MKR WiFi 1010 you use the WiFiNINA library which is slightly different.  Here is some example code:</p>
<pre><code>  if (client.connect(server, 80)) {
    client.println(&quot;POST /test/post.php HTTP/1.1&quot;);
    client.println(&quot;Host: www.targetserver.com&quot;);
    client.println(authorizationHeader);
    client.println(&quot;Content-Type: application/x-www-form-urlencoded&quot;);
    client.print(&quot;Content-Length: &quot;);
    client.println(postData.length());
    client.println();
    client.print(postData);
  }
</code></pre>
<p>The variable <code>authorizationHeader</code> will have the &quot;Authorization: Bearer xxxxx....&quot; authorization string.</p>
<p>Or you can replace the <code>client.println(authorizationHeader);</code> by:</p>
<pre><code>client.print(&quot;Authorization: Bearer &quot;);
client.print(token);
</code></pre>
<p>to avoid dealing with concatenations, etc.</p>
<p><code>client</code> can be an instance of <code>WiFiSSLClient</code> which works with both <code>WiFi101</code> and <code>WiFiNINA</code>.</p>
