Add support to response headers and test connection