Re: Testing resumeData from cancelByProducingResumeData:
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