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

curl for FTP....


  • Subject: curl for FTP....
  • From: David Crowe <email@hidden>
  • Date: Mon, 27 Nov 2006 18:00:00 -0700

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: curl for FTP....
      • From: Le Stang Jean-Baptiste <email@hidden>
  • Prev by Date: Re: [OT] recombine resource and data fork
  • Next by Date: Re: [OT] recombine resource and data fork
  • Previous by thread: When is a disk image file encrypted?
  • Next by thread: Re: curl for FTP....
  • Index(es):
    • Date
    • Thread