Re: Setting the NSURLDownload user agent
Re: Setting the NSURLDownload user agent
- Subject: Re: Setting the NSURLDownload user agent
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 20 Apr 2015 10:14:05 +0100
On 17 Apr 2015, at 22:23, Nick Beadman <email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden