cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

Re: [cURLpp] One question about libcurl

From: Jean-Philippe Barrette-LaPierre <jpb_at_rrette.com>
Date: Wed, 04 Jun 2008 08:42:07 -0400

On 4-Jun-08, at 3:16 AM, Xu Xiaogang-a19881 wrote:

> Hi Jean-Philippe
> I would like to consult you a question about libcurl.
> I am using libcurl to interact with the website, to get, post,
> put data from and to the website.
> I met a problem with libcurl, which is strange. My previous
> version of code is pure C. Everything works OK with libcurl.
> But, when I upgrade my code from c to C++, the function call of
> curl_easy_perform get exception very often. I am not sure whether it
> is a MUST to use libcurl in C++ binding.
> Would you please provide some guide? Thanks a lot.

Well, it would help if you could send a backtrace or the exception
which is sent. If curl_easy_perform throws exception, it's because
there's some callback that you set that throws that exception, which
you could catch it yourself and then stop the callback.

So, you don't NEED cURLpp, there's nothing you can't do with libcURL.
However, cURLpp is meant to help you with those. Again, you
need to remember that libcURL is WAY older and stable than cURLpp,
meaning that if you code carefully you'll probably never
hit a bug in libcURL, which could happen in cURLpp. So, if your code
is already written and uses libcURL, I would suggest to
continue toward this path, and just handle your exceptions carefully
(which you should do anyway).

>
> Regards
> -Xiaogang
>

_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2008-06-04

These mail archives are generated by hypermail.

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

File upload with ASP.NET