CoreFoundation exists on the iPhone. And you can look at cocoadev.org
for a decent HTTP Post example there or look on Google code for a
class that does Flickr uploads through HTTP Post and that works on the
iPhone.
HTTP Post is not hard, but it does expect a very specific way of doing
it.
I'm not quite sure about whether "Available in Mac OS X version 10.1
and later" means that it's not available in iPhone OS.
But, I assume everything that exists on iPhone OS reference library,
exists on iPhone OS, because that's also the case with
NSURLConnection, which obviously exists on iPhone
Hello Development,
Saturday, July 4, 2009, 3:20:45 AM, you wrote:
> I need to be able to upload the data from a UIImage to a server via
> http POST however I simply cannot find a good example of how to
> arrange the headers or how to make this post.
> The only data I need to send to the serve
It's the smallest errors that create the greatest frustration. I left
out a semi colon. and misspelled boundary. Which makes me wonder why
the examples I found didnt work.
On Jul 3, 2009, at 9:34 PM, Development wrote:
Ok I have made a tiny bit of progress.
The problem is that the _POST an
Ok I have made a tiny bit of progress.
The problem is that the _POST and _FILE arrays are still empty Well...
the _POST array on the server is filled with a mix of the data it
should have scrambled in with jpeg data. I desperately need help I
cannot find the answer for this for some reason.
I also tried this and it fails. The form never gets any post variables
or files:
[self sendText:@"Content-Type: multipart/form-data; boundry=@@##$$-
rew-**&&^%^\n"];
[self sendText:boundry];
[self sendText:[NSString stringWithFormat:@"Content-Length: %i\n
\n",totalSize]];
[self se
I have been trying to write my headers for multipart form data. I'm
then sending the data over a NSStream. If it would be easier however
to compact this somehow into a url request that would work fine too. I
just need to figure out how to get the file to the server.
On Jul 3, 2009, at 7:31
Check out documentation on NSURLRequest and NSURLConnection.
Luke
Sent from my iPhone.
On Jul 3, 2009, at 7:20 PM, Development
wrote:
I need to be able to upload the data from a UIImage to a server via
http POST however I simply cannot find a good example of how to
arrange the headers
What have you tried? Or at least looked at trying?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscrib