The HTTPClient in esp8266 has problems if we use at the same time the MQTT protocol.
The problem appear since the http.begin starts to force the use of more than one paremeter.
The last version that works is the esp8266 2.7.4 (if we use it with just one parameter)
Simptoms:
It will execute just one time the http.begin (inside the main loop) and block.