cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem with curl_easy_getinfo

From: Marek Elsner <marek_at_icom.pl>
Date: Fri, 25 Jun 2004 19:05:40 +0200

Hello,

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.
:-D

thank

Marek Elsner

 
Received on 2004-06-25