Re: Remote file attributes
Re: Remote file attributes
- Subject: Re: Remote file attributes
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 20 Mar 2003 05:17:59 -0800
On Thursday, March 20, 2003, at 04:30 AM, Yvelise Deledicq wrote:
* How can I know the size of the remote files before downloading them
from
ftp
or http?
Under FTP, you generally can't unless you got a directory listing in
advance and took note of the file's size.
Under HTTP, the size is part of the HTTP header returned by the server.
So it depends on how you're fetching the content. If you're doing this
at a low level, then you'll have to catch the size HTTP header. If
you're using a URL fetching framework, like CURLHandle or OWF, then
there's probably a documented way...
* Once I start downloading it how I will be able to know the bytes I've
downloaded in order to increase the progress bar?
That depends on what framework you're using, if any.
What framework/class, if any, are you planning to use to do the
download?
Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page:
http://dreamless.home.attbi.com/
Smile! It confuses people!
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.