• 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: curl for FTP....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >curl for FTP.... (From: David Crowe <email@hidden>)

  • Prev by Date: Re: [OT] recombine resource and data fork
  • Next by Date: mimetype to download and execute applescript
  • Previous by thread: curl for FTP....
  • Next by thread: mimetype to download and execute applescript
  • Index(es):
    • Date
    • Thread