HTTP requests with ESP8266 - From http://bitsofgyan.com/index.php/2016/05/01/http-requests-with-esp8266/
http.begin("http://192.168.0.104:8080/webappfordemo/Version");
int httpCode = http.GET();
if(httpCode == HTTP_CODE_OK)
{
Serial.print("HTTP response code ");
Serial.println(httpCode);
String response = http.getString();
Serial.println(response);
}
else
{
Serial.println("Error in HTTP request");
}
http.end();