Search found 2 matches
- Sun Jan 19, 2025 8:00 am
- Forum: ESP-IDF
- Topic: esp-idf http post
- Replies: 3
- Views: 596
Re: esp-idf http post
esp_http_client_config_t config = { .url = "http://192.168.10.43:3000/todos", .event_handler = _http_event_handler, }; esp_http_client_handle_t client = esp_http_client_init(&config); // POST const char *post_data = "{\"title\":\"hoge\",\"time\":123,\"date\":456}"; esp_http_client_set_method(client...
- Sat Jan 18, 2025 7:26 pm
- Forum: ESP-IDF
- Topic: esp-idf http post
- Replies: 3
- Views: 596
esp-idf http post
hi to all. I'm not good at English i'm using esp8266 kit + php +mysql +xampp ( localhost), try to using POST request to my php. I'm able to connect to wifi rourter and using this code: static void post_rest_function() { esp_http_client_config_t config = { .url = "http://192.168.56.1/final/updateHX71...