Avoid request with empty line
Redesigned the interaction with the outside