cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl with in C timeout / error

From: Thomas Bonham <thomasbonham_at_bonhamlinux.org>
Date: Mon, 31 Mar 2008 05:49:12 -0700

>> I'm trying to figure out how to get some message or error message
>> if the url isn't a good url.
>
> If you use the easy interface, curl_easy_perform() will return
> errors on "bad" urls.
>

Yes I'm using curl_easy_perform() and if it is good url it prints all
of the html and if it is a bad one then it prints nothing. So if it
returns "bad" then how can I put the code if it is good or bad.

Thank you,
Thomas
Received on 2008-03-31