curl-library
Re: Error Handling By CURLCode
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 4 Mar 2003 09:31:49 +0100 (CET)
Date: Tue, 4 Mar 2003 09:31:49 +0100 (CET)
On Mon, 3 Mar 2003, jafrif wrote:
> res=curl_easy_setopt(curl, CURLOPT_URL, "http://10.1.2./php/msg.php");
>
> cout<<res;
>
> I write wrong url or php script but res outputs 0 in that case also..
Right, because you're allowed to set the URL to anything you like with
*setopt(). curl won't know or care until it actually tries to use it with
*perform(), and then you might get an error.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.comReceived on 2003-03-04