Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: curl for FTP....



You can do something like the following :

curl ftp://long:password@host/ -l -X "LIST -a"

--
Jean-Baptiste

On Nov 28, 2006, at 2:00 AM, David Crowe wrote:

I did eventually track down the secret for getting modification date (and size for files). It appears to be the "-I" option, which only works for a single file.


For example on what I'm assuming is an OSX machine:

% url -I  ftp.apple.com/filemaker/distribution.txt
Last-Modified: Fri, 21 Feb 2003 21:04:48 GMT
Content-Length: 44
Accept-ranges: bytes
%

And from the manufacturer of a Windows FTP



% curl -I ftp.ftpx.com/pub/ftpx/testfile.dat
Last-Modified: Thu, 13 Jan 2005 15:43:55 GMT
Content-Length: 16777216
Accept-ranges: bytes
%


So this seems to do the trick, although I haven't found out how to use curl to determine the operating system so I can verify that the same format is returned for different OSs.


- David Crowe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/lists% 40lestang.org
Archives: http://lists.apple.com/mailman//archives/applescript-users


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >curl for FTP.... (From: David Crowe <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.