cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: problem saving urlcode (string)

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 14 Apr 2005 14:04:58 +0200 (CEST)

On Thu, 14 Apr 2005, Arno Nühm wrote:

> Hi, thank you very much. i got it now. i only wonder why the console output
> worked like that:
>
> res = curl_easy_perform(curl);
> xmldata = res; // xmldata is a c++ string
> cout << xmldata;
>
> when res should only be a CURLcode type?

Because the default libcurl behaviour is to write the data to stdout.

         http://curl.haxx.se/docs/faq.html#5.10

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-04-14