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

...ice to return headers

This reverts commit cdc53a79364f7c651b6c96a841eccd0bafad8467.
Ok so if I understand correctly, you are copying the request headers in the response headers and check whether the expected header is here or not when you receive the response from the server ?