Submitted radar://20619548 asking for a method to get the default user-agent string from NSURLRequest.
As for why I am using NSURLDownload rather than NSURLSession, it is quite simple I have to support OS X 10.8 and NSURLSession didn't appear until 10.9. Does any one have any idea how I would write code to get the CFNetwork and Darwin versions? The only CF version number I have found is kCFCoreFoundationVersionNumber which isn't what I am looking for. Thanks, Nick On Mon, Apr 20, 2015 at 2:14 AM, Quinn "The Eskimo!" <eski...@apple.com> wrote: > > On 17 Apr 2015, at 22:23, Nick Beadman <nick.beadman.li...@gmail.com> > wrote: > > > When setting the user-agent this way it contains exactly what you set > and nothing else. I would like to continue to append the CFNetwork and > Darwin version. Any one know how to do that? > > There's no easy way to do that: setting the user agent string is an all or > nothing thing. You could write code to get the CFNetwork and Darwin > versions and mimic what CFNetwork is doing, but that's not very sustainable. > > Feel free to file a bug requesting a better option for this. > > <https://developer.apple.com/bug-reporting/> > > Please post your bug number, just for the record. > > * * * > > Also, why are you using NSURLDownload and not NSURLSession download > tasks? The latter is strongly recommended these days. > > And if you do file a bug, make sure to file it against NSURLSession, not > NSURLDownload, but NSURLSession is The Futureā¢. > > Share and Enjoy > -- > Quinn "The Eskimo!" <http://www.apple.com/developer/> > Apple Developer Relations, Developer Technical Support, Core OS/Hardware > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/macnetworkprog/nick.beadman.lists%40gmail.com > > This email sent to nick.beadman.li...@gmail.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com This email sent to arch...@mail-archive.com