does NSURLSession send user-agent automatically has an answer that describes the NSURLSession default HTTP User-Agent string for iOS. I want to know the default format for macOS (preferably with supporting documentation), and the default format for NSURLConnection as well.
I'm seeing some very old User-Agent strings on my site, and I'm trying to verify potential sources.