cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: newbie question about receiving data

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 28 Sep 2005 15:19:29 +0200 (CEST)

On Wed, 28 Sep 2005, Howell, Andrew wrote:

> I'm calling from a 16bit application through a 32bit thunking library and
> unfortunately I don't think there is any way I can hook in a callback
> function. Is there any way I can get a pointer to the received data in
> memory?

There is only one way to get the data without getting it stored to a FILE *,
and that is by setting a callback function.

For libcurl, there just is no point in supporting any further ways.

> Apart from that, everything seems to be working (the 'perform' call is
> returning 0) but there's another odd thing. If I have the protocol at the
> begging of the URL, (eg 'http://www.something.com' instead of
> 'www.something.com') then curl_easy_perform() returns 6 -
> CURLE_COULDNT_RESOLVE_HOST.

I can't explain that. libcurl treats the two approaches the same, apart from
some initial string parsing.

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