• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x
      • From: Sergey Shapovalov <email@hidden>
References: 
 >NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x (From: Sergey Shapovalov <email@hidden>)
 >Re: NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x (From: Sergey Shapovalov <email@hidden>)

  • Prev by Date: Re: redrawing a particular subview in non mainWindows.
  • Next by Date: Re: Xcode3.2 build and analyze warning for NSString allocation
  • Previous by thread: Re: NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x
  • Next by thread: Re: NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x
  • Index(es):
    • Date
    • Thread