• 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: How do I show progress with CFStream upload?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I show progress with CFStream upload?


  • Subject: Re: How do I show progress with CFStream upload?
  • From: Becky Willrich <email@hidden>
  • Date: Wed, 7 Apr 2004 13:23:08 -0700

I am doing a HTTP POST of a file. The file could be quite large. I have no choice in doing the POST. I would like to show the upload (POST) progress. How would I do that?

Periodically query the stream property kCFStreamPropertyHTTPRequestBytesWrittenCount; this will give you the number of bytes thusfar written to the server. Only the body bytes are counted; the HTTP header bytes are not. Unfortunately, there's no event to let you know when this number has changed; you'll have to just check from time to time.

Hope that helps,
REW
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: How do I show progress with CFStream upload?
      • From: Chris Griffin <email@hidden>
References: 
 >How do I show progress with CFStream upload? (From: Chris Griffin <email@hidden>)

  • Prev by Date: How do I show progress with CFStream upload?
  • Next by Date: How to set PPP remote address with Internet Connect
  • Previous by thread: How do I show progress with CFStream upload?
  • Next by thread: Re: How do I show progress with CFStream upload?
  • Index(es):
    • Date
    • Thread