Re: NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x
Re: NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x
- Subject: Re: NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x
- From: Jens Alfke <email@hidden>
- Date: Sun, 27 Sep 2009 08:59:22 -0700
On Sep 27, 2009, at 2:25 AM, Sergey Shapovalov wrote:
This makes me think that chunked upload from stream via
NSURLConnection has been broken in iPhone OS 3.x. Unfortunately, in
real life I can't upload my file by using setHTTPBody instead of
setHTTPBodyStream because it's too big to store in memory.
That sounds plausible :( Is there a way you can capture the HTTP
traffic to see exactly what's going on? Ordinarily I use the tcpflow
utility for this, but it's not possible to install that on an iPhone.
I think tcpdump can be used from a Mac/PC to capture packets from
other devices on the LAN.
In any case, you should repost your questions on the macnetworkprog
mailing list — this looks like a CFNetwork problem, and some of the
engineers who work on that read that list.
Unfortunately, in real life I can't upload my file by using
setHTTPBody instead of setHTTPBodyStream because it's too big to
store in memory.
Have you tried memory-mapping? Use [NSData
dataWithContentsOfMappedFile:].
—Jens_______________________________________________
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