I've been implementing a WiFiNINA web server on a Nano IOT 33 using this sample " WiFiNINA/AP_SimpleWebServer.ino at master · arduino-libraries/WiFiNINA · GitHub" and have no issues with GET requests, but haven't found any examples that would explain a POST request, in particular how to get the body content/payload.
There are lots of examples om how to make a post request to a different server, but nothing that I have been able to find on handling the POST request including it's body content/payload.
If someone could let me know how to do this or show me an example that would be great.
Thanks for it, I actually just found a solution. Instead of looking for the double new line as per the current sample code, I'm looking for a new line and then client.peek() returning a -1 value. Quite possible I could just use client.peek() returning a -1 value as the flag, but need to check what other cases it might return -1, only new to WiFi and Arduino.