cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl check for file with TFTP

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 7 Apr 2009 22:50:44 -0600

On Wed, Apr 08, 2009 at 05:01:34AM +0200, Guenter wrote:
> 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.

What's an example of such an invalid http URL? I get a return code of
6 when I feed it an invalid host.

> 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.

The documentation states that "Don't show progress meter or error messages"
and the header isn't either of those.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2009-04-08