cURL / Mailing Lists / curl-library / Single Mail

curl-library

Question on curl_easy_perform and HTTP 404 errors

From: Ben Greear <greearb_at_candelatech.com>
Date: Wed, 23 Jul 2008 16:41:45 -0700

I'm using libcurl version 7.15.3

When I use curl_easy_perform to try to download a web page
that doesn't exist, the method returns 0.

Is curl_easy_perform supposed to return an error code other
than zero in this case?

If not, is there an easy way to know that the http code was 404?

Thanks,
Ben

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
Received on 2008-07-24