curl-library
Re: Wonder on curl_easy_getinfo()
From: Armel Asselin <asselin.armel_at_wanadoo.fr>
Date: Wed, 9 Aug 2006 22:21:35 +0200
Date: Wed, 9 Aug 2006 22:21:35 +0200
> long* lRespCode = new long;
> curl_easy_getinfo(curl_easy,
> CURLINFO_RESPONSE_CODE, lRespCode);
> I did the test with adding 'delete lRespCode;' in my
> code and it works well.
you __can__ do that, but it is awfully inefficient, so usually you write:
long lRespCode = 0;
curl_easy_getinfo(curl_easy,
CURLINFO_RESPONSE_CODE, &lRespCode);
Armel
Received on 2006-08-09