HTTP PUT method on NodeMCU/ESP8266
HTTPClient http;
http.begin("http://google.com?on=false");
http.addHeader("Content-Type", "application/json");
int httpCode = http.sendRequest("PUT", "");
String payload = http.getString();


try with this code, if server .php,
get data by $_REQUEST