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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
