I’m using the Mbed NXP LPC1768 controller with ESP8266. I’m able to send one value to one variable. When I try to send the multiple value to multiple variable, Im getting the 400 Bad Request Error, “Your browser sent an invalid request”.
Greetings @jynhao94, I am not sure what your error is, I see that you built properly the payload. Try to send one single value inside your payload and look if you still get a 400 request
400 Bad request
Cache-Control: no-cache
Connection: close
Content-Type: text/html
<html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
Returning 400 means that the request was malformed. In other words, the data stream sent by the client to the server didn’t follow the rules. The client SHOULD NOT repeat the request without modifications. It means that the request itself has somehow incorrect or corrupted and the server couldn’t understand it. The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method . Therefore, it prevents the website from being properly displayed. To fix a 400 Bad Request error, it is best to start diagnosing the issue from the client side itself. Complete the steps outlined in this section to help diagnose and correct the error.