I am trying to update the data measured by ESP32-CAM using Glide table API. However, every time I use the POST method, I get the message ‘connection refused’ with the httpReponseCode displayed as -1.
The code I used for ESP32-CAM is shown below. The ROW ID of the Glide table is always the same, so I used a fixed value.
A -1 response I believe suggests some sort of connection problem. Are both tests going through the same network gateway? Could there be a firewall or similar getting in the way?
When you do that, the request is being sent from reqbin.com, not from your local machine.
What sort of machine are you using? Windows, Mac?
You need to open a terminal console on your local machine and send the curl request from there, and see if you get the same response.
Wow now I can use cURL on my terminal in Mac.
When I input same commend that I use reqbin.com/curl, I got this result (below image). And the table is updated with my value ‘10’. It works.