v.22.2Improvement

User-Agent Header Added to ClickHouse HTTP Requests

Some servers expect a User-Agent header in their HTTP requests. A User-Agent header entry has been added to HTTP requests of the form: User-Agent: ClickHouse/VERSION_STRING. #34330 (Saad Ur Rahman).
Added a User-Agent header to HTTP requests sent by ClickHouse, formatted as User-Agent: ClickHouse/VERSION_STRING.

Why it matters

This feature addresses compatibility and logging requirements for some servers that expect a User-Agent header in incoming HTTP requests. Including the header improves interoperability and aids in request identification and debugging.

How to use it

No additional configuration is required; ClickHouse automatically includes the User-Agent header with the version string in all outgoing HTTP requests.