Problem with curl_easy_getinfo
Date: Fri, 25 Jun 2004 19:05:40 +0200
I am newbie, so probably my problem will sound funny.
If I want to write last URL into variable "m" I am using curl_easy_getinfo(curl,CURLINFO_EFFECTIVE_URL,&m); and everything is ok.
Now I would like to write whole content of the webpage into "m" variable.
So I think I should use CURLINFO_RESPONSE_CODE, but when I am trying to do:
(curl,CURLINFO_RESPONSE_CODE,&m); it does not work.
On http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html I read that CURLINFO_RESPONSE_CODE will pass a pointer to a long.
But content of the page will not be long ( I suppose long means long int).
Maybe someone will show me where I made it wrong because now I am totally lost.
Received on 2004-06-25