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] Easy::setOpt improvement

From: Piotr Dobrogost <curlpp_at_2008.autoera.pl>
Date: Fri, 14 Nov 2008 22:12:29 +0100

Jean

Using Easy::setOpt is not as convenient as it should be.

Now we have

std::string address = "http://example.com"
// Setting the URL to retrive.
request.setOpt(new cURLpp::Options::Url(address));

Could we do better?

std::string url = "http://example.com"
// Setting the URL to retrive.
request.set<url>(address);

Regards
Piotr Dobrogost
 
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2008-11-14

These mail archives are generated by hypermail.

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

File upload with ASP.NET