HttpClient: removed the need for curl debug hooks, by enabling test serv...

...ice to return headers

This reverts commit cdc53a79364f7c651b6c96a841eccd0bafad8467.