Re: How do I show progress with CFStream upload?
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.