• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting the NSURLDownload user agent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Setting the NSURLDownload user agent
      • From: Nick Beadman <email@hidden>
References: 
 >Setting the NSURLDownload user agent (From: Nick Beadman <email@hidden>)

  • Prev by Date: Re: Questions on when credentials are used in NSURLSessionDownloadTask
  • Next by Date: Re: Questions on when credentials are used in NSURLSessionDownloadTask
  • Previous by thread: Setting the NSURLDownload user agent
  • Next by thread: Re: Setting the NSURLDownload user agent
  • Index(es):
    • Date
    • Thread