cURL / Mailing Lists / curl-library / Single Mail


Re: curl check for file with TFTP

From: Guenter <>
Date: Wed, 08 Apr 2009 05:01:34 +0200

while doing some more file-exist checks I found some other things:

curl -Iso /dev/null $*
echo "Status: $?"

1. http does always give me status 0 regardless if I pass a valid or
invalid URL while ftp returns non-0 for invalid URLs.
2. I would have expected that the -s switch should have been sufficient
to supress the header output, but seems not, and therefore the -o
/dev/null hack.

Received on 2009-04-08