curl-library
Re: http download : error code 0 after download failure
From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Mon, 4 Dec 2006 09:25:07 -0600
Date: Mon, 4 Dec 2006 09:25:07 -0600
On 12/4/06, kuriakose <kuriakose_at_huawei.com> wrote:
>
> Using libcurl I was trying to download http
>
> But the path I am giving is a non existent path in the webserver
>
> The verbose says
>
> HTTP /1.1 404 error
>
> But curl easy perform returns me error code 0
>
> which means success, Why is this happening?
You asked curl to fetch something from the server. The web server
replied with a page that says that it doesn't exist. As far as curl
is concerned, that's a successful transaction, because a page came
back. Curl isn't attempting to interpret the contents of that page.
Ralph Mitchell
Received on 2006-12-04