curl-library
Re: Hi ALL,
From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Fri, 29 Feb 2008 09:03:26 +0100
Date: Fri, 29 Feb 2008 09:03:26 +0100
Ramprakash Jelari thinakaran wrote:
> When i do curl_easy_perform() on the wrong URL still i get the return
> CURLE_OK.
Yes. That is perfectly in order. CURLE_OK means that the communication
with the server was successful and curl got a valid response, which is
the 404 in this case. If you want to see the HTTP result code, do like this:
long result;
curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &result);
Linus
Received on 2008-02-29