<div dir="ltr">Okay, I have something working.<div>Pretty annoying process though.</div><div><br></div><div>This could really do with some solid documentation + examples by someone who knows what they're talking about.</div>
<div>I'd like to think get(url) should be really easy, and shouldn't waste hours of someone's time to understand and call.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 November 2013 21:06, Tavi Cacina <span dir="ltr"><<a href="mailto:octavian.cacina@outlook.com" target="_blank">octavian.cacina@outlook.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Monday, 11 November 2013 at 09:53:38 UTC, Manu wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
First-chance exception: std.net.curl.CurlException Peer certificate cannot<br>
be authenticated with given CA certificates on handle 8C5090 at<br>
std\net\curl.d(3504)<br>
<br></div><div class="im">
And why does curl crash when it encounters HTTPS anyway?<br>
</div></blockquote>
<br>
<a href="https://d.puremagic.com/issues/show_bug.cgi?id=9737" target="_blank">https://d.puremagic.com/<u></u>issues/show_bug.cgi?id=9737</a><br>
<br>
SSL usage example:<br>
-----<br>
auto http = HTTP();<br>
<br>
// Set the CA certificate bundle file to use for SSL peer verification<br>
// To dowload this file (or generate it yourself) see<br>
<a href="http://curl.haxx.se/docs/caextract.html" target="_blank">http://curl.haxx.se/docs/<u></u>caextract.html</a><br>
// For more information about SSL peer verification see<br>
<a href="http://curl.haxx.se/docs/sslcerts.html" target="_blank">http://curl.haxx.se/docs/<u></u>sslcerts.html</a><br>
http.caInfo("cacert.pem");<br>
<br>
auto resp = get("<a href="https://google.com" target="_blank">https://google.com</a>", http);<br>
</blockquote></div><br></div>