HTTP headers 'Host:' and 'User-Agent:' fixed

### Description
The HTTP headers 'Host' and 'User-Agent' were truncated.
That is now fixed and the corresponding functional tests have been modified accordingly.
The version of libcurl has been added to the user-agent.

This PR is related to the issue #442.
Of course.
There is no longer any 'new char[]', the variables headerHost and headerUserAgent are now local variables on the stack.

NTC