How to Set a Default User-Agent on an HttpClient in C#
HttpClient sends no User-Agent header unless we add one. We can set it on a single HttpRequestMessage, or set it once on the client's DefaultRequestHeaders so that every request it sends carries the same value. We'll look at what the header holds first, then set it...
