[futurebasic] Re: [FB] Hanging on fn CFURLCreateDataAndPropertiesFromResource (was problem with CFString --> Container conversion)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2012 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Wed, 29 Feb 2012 09:17:51 +1300
Alain Wrobel wrote:

> I think CFNetwork may offer a possible solution,

There is a tiny Apple example program CFNetworkHTTPDownload.
It uses:
CFHTTPMessageCreateRequest( kCFAllocatorDefault, CFSTR("GET"), urlRef, kCFHTTPVersion1_1 );
CFReadStreamCreateForHTTPRequest();
CFReadStreamScheduleWithRunLoop();
CFReadStreamOpen();

Here's the built app, compiled for Intel 10.5+
4toc.com/fb/CFNetworkHTTPDownload.app.zip  [10 KB]


Robert P.