There's a wrapper for it that will be included in Phobos.  This wrapper is easier to work with for D.<div><div><br></div><div>It has  structs for HTTP, FTP and SMTP.</div><div><br></div><div><a href="https://github.com/jcd/phobos/blob/curl-wrapper/etc/curl.d">https://github.com/jcd/phobos/blob/curl-wrapper/etc/curl.d</a><br>

<div><br><div class="gmail_quote">2012/1/10 simendsjo <span dir="ltr"><<a href="mailto:simendsjo@gmail.com">simendsjo@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Anyone using this module?<br>
For a complete curl newbie, it's far from simple.. The names have changed, and are inconsistent. Is it CurlOpt.write_function or CurlOpt.writefunction? CurlOpt.connect_only or CurlOpt.connectonly?<br>
<br>
I'm having a hard time finding any tutorials on libcurl. Or rather... I'm having a hard time finding example code on doing the most elementary task: Get a html page as a string! :|<br>
<br>
The simplest c example shows how to do this in 4 lines, but not how to get the actual result! Where is the page I just downloaded?<br>
<br>
    auto curl = curl_easy_init();<br>
    assert(curl);<br>
    scope(exit) curl_easy_cleanup(curl);<br>
<br>
    curl_easy_setopt(curl, CurlOption.url, toStringz(url));<br>
    assert(curl_easy_perform(curl) == 0);<br>
<br>
And now..?<br>
</blockquote></div><br></div></div></div>