Closed mathcoll closed 7 years ago
Hi @mathcoll,
Please have a look at Massimo's sketch: https://create.arduino.cc/editor/askmassimo/feb3bd6f-2c8c-4eba-892e-3612eaa999bd/preview
The post must be called after beginRequest
, followed by the custom headers:
client.beginRequest();
client.post("/v1.1/messages"); //, contentType, buf
client.sendHeader("Authorization", AuthorizationData);
client.sendHeader("Content-Type", "application/json");
client.sendHeader("Content-Length", len);
client.endRequest();
client.print(but);
Hello,
I'm trying to post data to a server using ArduinoHttpClient. in the loop(), I have added :
Unfortunately, the server got the following headers from the request:
Could you please advice? is there anything I'm doing wrong?