cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problems with site-download

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 4 Sep 2005 11:21:00 +0200 (CEST)

On Sat, 3 Sep 2005, Peter Staab wrote:

> I use the two functions below to download websites into a char*. Everything
> works fine for many sites but sometimes, e.g. when a €-sign (EURO-Sign) or
> some other special character occurs, the download cancels before this sign
> (without a error) and I only get the website's content til this position.

How can you tell that it the transfer that was cancelled and not just your
function that deals with the result? This code doesn't check the
curl_easy_perform() return code... And libcurl doesn't stop a transfer based
on what data that is sent to the write callback!

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