• 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: Testing resumeData from cancelByProducingResumeData:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Testing resumeData from cancelByProducingResumeData:


  • Subject: Re: Testing resumeData from cancelByProducingResumeData:
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Wed, 19 Feb 2014 17:57:49 -0800

On 19 Feb 2014, at 17:31, Scott Hancher <email@hidden> wrote:

> What is required of my test server for it to support the creation of a non-nil NSData object from cancelByProducingResumeData?

Last I checked to get resume data you must meet all the following criteria:

A. The scheme of the requested URL must be "http" or "https".

B. The request's method must be "GET".

C. The response must be an NSHTTPURLResponse (which should always be the case given point A).

D. The response must include either the "ETag" or "Last-Modified" headers (or both).

E. The file to which the task is downloading must be present.  This file is managed internally by NSURLSession, so you shouldn't trip over this case (unless there's been a cache folder cleanup in the interim).

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


References: 
 >Testing resumeData from cancelByProducingResumeData: (From: Scott Hancher <email@hidden>)

  • Prev by Date: Testing resumeData from cancelByProducingResumeData:
  • Next by Date: Re: Testing resumeData from cancelByProducingResumeData:
  • Previous by thread: Testing resumeData from cancelByProducingResumeData:
  • Next by thread: Re: Testing resumeData from cancelByProducingResumeData:
  • Index(es):
    • Date
    • Thread