Hi
I'm trying to send a multipart/form-data 'POST' request using NSURLRequest, including several keys, but also an image. I'm not particularly knowledgeable on HTTP request (and pretty new to Cocoa, to be honest...)
If you want to know what it's for, right now I'm trying to work against the Tumblr API to post a photo to a Tumblelog from a Cocoa app. I've managed to make text posts from the app, but I can't work out how to do a photo post.
I've been looking on forums and there's a couple of people with really long-winded solutions but I haven't managed to get any of them working. The connection starts and then a message comes back saying 'posts cannot be empty', suggesting that the authentication is fine, but it's not receiving the data part of the message
Anyway, I'd be grateful for any help, if anyone knows how to make this happen
Stu
I'm trying to send a multipart/form-data 'POST' request using NSURLRequest, including several keys, but also an image. I'm not particularly knowledgeable on HTTP request (and pretty new to Cocoa, to be honest...)
If you want to know what it's for, right now I'm trying to work against the Tumblr API to post a photo to a Tumblelog from a Cocoa app. I've managed to make text posts from the app, but I can't work out how to do a photo post.
I've been looking on forums and there's a couple of people with really long-winded solutions but I haven't managed to get any of them working. The connection starts and then a message comes back saying 'posts cannot be empty', suggesting that the authentication is fine, but it's not receiving the data part of the message
Anyway, I'd be grateful for any help, if anyone knows how to make this happen
Stu