curl

Tavi Cacina octavian.cacina at outlook.com
Mon Nov 11 03:06:15 PST 2013


On Monday, 11 November 2013 at 09:53:38 UTC, Manu wrote:
> First-chance exception: std.net.curl.CurlException Peer 
> certificate cannot
> be authenticated with given CA certificates on handle 8C5090 at
> std\net\curl.d(3504)
>
> And why does curl crash when it encounters HTTPS anyway?

https://d.puremagic.com/issues/show_bug.cgi?id=9737

SSL usage example:
-----
auto http = HTTP();

// Set the CA certificate bundle file to use for SSL peer 
verification
// To dowload this file (or generate it yourself) see
http://curl.haxx.se/docs/caextract.html
// For more information about SSL peer verification see
http://curl.haxx.se/docs/sslcerts.html
http.caInfo("cacert.pem");

auto resp = get("https://google.com", http);


More information about the Digitalmars-d mailing list