cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET