• 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: Remote file attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Remote file attributes
      • From: "Yvelise Deledicq" <email@hidden>
References: 
 >Remote file attributes (From: "Yvelise Deledicq" <email@hidden>)

  • Prev by Date: NSButtonCell used alone draws itself in gray, not blue
  • Next by Date: Re: Remote file attributes
  • Previous by thread: Remote file attributes
  • Next by thread: Re: Remote file attributes
  • Index(es):
    • Date
    • Thread