Re: curl for FTP....
Re: curl for FTP....
- Subject: Re: curl for FTP....
- From: Le Stang Jean-Baptiste <email@hidden>
- Date: Tue, 28 Nov 2006 08:41:08 +0100
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:
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:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden