does NSURLSession send user-agent automatically
问题 Does NSURLSession send user-agent automatically when user WatchKit 2.0, iOS 9.0? Is there a way to verify this within the WatchKit app? 回答1: Yes, a user agent is automatically provided as part of the default session configuration. The default NSURLSession request header User-Agent field includes the Bundle Name ( CFBundleName ) and the Build Number ( CFBundleVersion ) of your watchOS app extension: $(CFBundleName)/$(CFBundleVersion) CFNetwork/808.3 Darwin/16.3.0 Notice that your app's Version