cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Test for file existence by ftp?

From: Owen Watson <o.m.watson_at_gmail.com>
Date: Mon, 28 Mar 2005 09:40:26 +1200

All the -l switch does is give a directory listing; no different
output whether the particular file exists or not. I was hoping there
was a switch that said a file did or did not exist without getting the
dir contents or downloading the file.

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

> Yes:
>
> curl -I [URL]
>
Received on 2005-03-27