Skip navigation.
 
mlRe: HTTPS and Cocoa
FROM : Becky Willrich
DATE : Tue Jan 28 23:01:58 2003

NSURL and NSURLHandle can manage https URLs, but only in the "normal" 
way - issuing a GET to retrieve a resource.  If you need more control 
over the outgoing request than they allow, your best bet is to use 
CFNetwork; use a CFHTTPMessage to create exactly the request you want 
with the appropriate https URL, then create a CFReadStream from it, 
then open and read from the stream to get the returned data - the 
engine will take care of the necessary SSL work for you.  The relevant 
headers are in 
/System/Library/Frameworks/CoreServices.framework/Frameworks/
CFNetwork.framework/Headers; there is sample code at 
/Developer/Examples/Networking, and I think there's even some 
documentation at developer.apple.com.

REW


On Monday, January 27, 2003, at 11:05 PM, Chad Leigh -- ObjectWerks 
Inc. wrote:

> Hi All
>
> I want to write some Cocoa code to interface with Fedex and their 
> "direct" http based server for shipping stuff.  They require being 
> able to send your own requests over HTTP protocol using SSL.  I was 
> wondering what sort of Cocoa objects/code already exists that can do 
> that that I can use.
>
> I have found a few things that I am testing but wanted to see what 
> people recommend.
>
> Thanks
> Chad
>
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev



Related mailsAuthorDate
mlHTTPS and Cocoa Chad Leigh -- Obje… Jan 27, 23:17
mlRe: HTTPS and Cocoa Dan Wood Jan 28, 12:01
mlRe: HTTPS and Cocoa Douglas Davidson Jan 28, 21:17
mlRe: HTTPS and Cocoa Becky Willrich Jan 28, 23:01