curl-library
Re: header functions and error response headers
From: David Strauss <david_at_davidstrauss.net>
Date: Mon, 27 May 2013 21:27:49 -0500
Date: Mon, 27 May 2013 21:27:49 -0500
On Mon, May 27, 2013 at 11:33 AM, Mohammad_Alsaleh <msal_at_tormail.org> wrote:
> Am I doing something wrong?
Instead of expecting it as a header, you should read the code using
curl_easy_getinfo() with CURLINFO_RESPONSE_CODE [1], assuming
curl_easy_perform() returns CURLE_OK.
[1] http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html#CURLINFORESPONSECODE
-- David Strauss | david_at_davidstrauss.net | +1 512 577 5827 [mobile] ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-05-28