Re: Can core data save to a remote file?
Re: Can core data save to a remote file?
- Subject: Re: Can core data save to a remote file?
- From: Jens Alfke <email@hidden>
- Date: Fri, 14 Mar 2008 09:05:18 -0700
On 13 Mar '08, at 10:10 PM, Kyle Sluder wrote:
POST isn't usable for this: "The action performed by the POST method
might not result in a resource that can be identified by a URI.
Not generically usable, no, but some web-apps have protocols that use
POST to save a resource in a PUT-like way (e.g. the Blogger API.)
PUT would be the working option, but nobody has PUT enabled without
WebDAV.
That's simply not true. I already mentioned the Atom Publishing
Protocol, and there are any number of other REST-based protocols that
use PUT — Flickr, GData and Amazon's S3 and SQS come to mind. (See the
O'Reilly book "RESTful Web Services" for more examples.)
But this is getting off topic for Cocoa-Dev so I should take my advice
and shut up :) Except to point out that it's quite easy to use
NSURLConnection to do PUTs: you just need to set up the request by
calling -setHTTPMethod: @"PUT", and then use -setHTTPBody: or -
setHTTPBodyStream:.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden