iphone - Continue with previous downloaded session without using ASIHTTPRequest -


by using asihttprequest , asidownloadcache able continue previous downloaded session.now don't want use asidownloadcache.so,is there alternatives achieve it. in advance.

if server supports it, can specify content-range field in header of http request , ask small portion of file @ once. when portions, can assemble file together.

you can set http headers nsmutableurlrequest setvalue:@"0-1023/*" forhttpheaderfield:@"content-range"];, example downloads 1024 byte of file. see content-range in http://www.w3.org/protocols/rfc2616/rfc2616-sec14.html

this way can download file in parts , next time when want resume download can continue next part don't have yet.


Comments