• 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: streamed HTTP POSTs problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: streamed HTTP POSTs problem


  • Subject: Re: streamed HTTP POSTs problem
  • From: Gary Fielke <email@hidden>
  • Date: Fri, 8 May 2009 15:35:57 +0930

I do vaguely remember looking into that some time ago but messages such as http://lists.apple.com/archives/Macnetworkprog/2007/May/msg00051.html and the followups kind of put me off (suggesting that subclassing NSInputStream for this sort of thing isn't safe).
Maybe it's changed since then. 

I do feel I'm only one step away (one tidbit of advice!) from getting the CF streams to work. 
Thanks for your comments.
Gary

On 08/05/2009, at 2:59 PM, Jens Alfke wrote:


On May 7, 2009, at 9:20 PM, Gary Fielke wrote:

I understand using CF is the only way to get upload progress - CFReadStreamCopyProperty(httpReqStream, kCFStreamPropertyHTTPRequestBytesWrittenCount);

You can set the HTTPBodyStream property of an NSMutableURLRequest — attach it to your own NSInputStream subclass that wraps an existing stream (on a file or an NSData or whatever) while keeping track of the number of bytes that have been read.

—Jens

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >streamed HTTP POSTs problem (From: Gary Fielke <email@hidden>)
 >Re: streamed HTTP POSTs problem (From: Jens Alfke <email@hidden>)
 >Re: streamed HTTP POSTs problem (From: Gary Fielke <email@hidden>)
 >Re: streamed HTTP POSTs problem (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: streamed HTTP POSTs problem
  • Next by Date: (no subject)
  • Previous by thread: Re: streamed HTTP POSTs problem
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread