etc.c.curl...?

Jonathan M Davis jmdavisProg at gmx.com
Tue Jan 10 14:14:50 PST 2012


On Tuesday, January 10, 2012 16:01:01 Jimmy Cao wrote:
> There's a wrapper for it that will be included in Phobos. This wrapper is
> easier to work with for D.
> 
> It has structs for HTTP, FTP and SMTP.
> 
> https://github.com/jcd/phobos/blob/curl-wrapper/etc/curl.d

Yeah. That would be the better route. etc.c.curl is basically just bindings to 
the C library, so for the most part, any usability issues originate with 
libcurl, and it's libcurl documentation that you'll need in order to figure out 
to use it. But the idea is that you'd use a D wrapper with a much friendlier 
API. The one above has been voted into Phobos but hasn't been merged in yet 
(and may end up with some minor tweaks before it does, but what's in that 
repository should be essentially what's going to be merged in for either 2.058 
or 2.059 - depending on how soon a pull request for it is generated and how 
long it takes for it to actually be merged in).

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list