cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Test for file existence by ftp?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 27 Mar 2005 14:54:20 +0200 (CEST)

On Sat, 26 Mar 2005, Owen Watson wrote:

> I've checked the dox, but I can't see any way of testing for the existence
> of a file on a ftp site without either getting it in its entirety or running
> a directory command and parsing the output. Is there a simpler way?

Yes:

  curl -I [URL]

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-03-27