cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

[cURLpp] BUG : PostFieldSize options

From: Nicolas Le Goff <nicolas_at_1-click.com>
Date: Tue, 19 Jul 2005 15:55:17 +0200

Hi,

This is my first post here, so please forgive me wether I'm breaking any
rule(s).

In cURLpp version "0.5.0-rc7", in file "options.hpp", line 114, I think
"PostFieldSize" should not be defined as "std::string" but as a "long".

I think we should have
    typedef cURLpp::OptionTrait< long, cURL::CURLOPT_POSTFIELDSIZE >
PostFieldSize;
and the same goes for the "CURLOPT_POSTFIELDSIZE_LARGE" wrapper 2 lines
after.

I experienced troubles in the "Content-Length" header when setting
PostFielSize to a std::string.
No more trouble after changing this to a long.

Hope it could help.

Nicolas LE GOFF

_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2005-07-19

These mail archives are generated by hypermail.

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

File upload with ASP.NET