On 27/02/07, Jean-Philippe Barrette-LaPierre <jpb_at_rrette.com> wrote:
>
> On 27-Feb-07, at 5:56 PM, Gazi Alankus wrote:
>
> > This is to remind anybody that are planning to use curlpp for HTTP
> > POST requests. My experience is that it is not working. So don't waste
> > your time, go use libcurl directly. Hope this can save somebody some
> > time in the future.
> >
>
> I would like to thank you for your support. It is very touching to
> know that
> the effort we put in a project (voluntary), is appreciated. It's
> very rare to
> encounter people, like you, that understand the amount of effort we
> put in those
> projects. All the comments you made, and patches you submited allowed
> cURLpp to improve and become the great library it is now.
>
> We should share a beer sometime!
I appreciate the effort, but I think the website provides misleading
information. I just wanted to let this known by prospective users of
the library to save them some time. It is not documented anywhere,
neither the website nor any comment in the sources say that it is
broken. I'm sorry if it sounded cruel, I didn't mean that.
HTTP POST with multiple form fields is broken because a HttpPost class
l-value cannot be assigned to a std::list r-value. I created a patch
that fixes this while respecting the nice class structure. I'm
attaching it to this e-mail along with an example that uses it, but in
case it does not get through you can find the files and a tarball
here:
http://alankus.com/main/node/59
Changes:
-Fixed a weird multiple #include incident despite #define's. Didn't go
deep into the reason.
-Added getList() method to HttpPost
-Created OptionContainer < std::list<cURLpp::FormPart *> > template
specialization class to be able to handle them differently.
Todo:
-Only verified that simple content form fields work, didn't even try
files. Should be tested.
-Similar OptionContainer specializations should be created for all
other non-scalar curl options for a better coverage
I hope this helps future users of the library.
Peace,
-Gazi
>
> > Please correct me if I'm wrong.
> >
> > http://alankus.com/main/node/54
> >
> > -Gazi
> > _______________________________________________
> > cURLpp mailing list
> > cURLpp_at_rrette.com
> > http://www.rrette.com/mailman/listinfo/curlpp
>
> _______________________________________________
> cURLpp mailing list
> cURLpp_at_rrette.com
> http://www.rrette.com/mailman/listinfo/curlpp
>
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2007-02-28