Phobos urllib
Graham Fawcett
fawcett at uwindsor.ca
Fri Aug 13 10:19:18 PDT 2010
Hey Adam,
On Fri, 13 Aug 2010 10:21:33 -0400, Adam Ruppe wrote:
> I've been using the curl library with a thin wrapper in D:
>
> http://arsdnet.net/dcode/curl.d
>
> Example use:
>
> dmd test.d curl.d -L-lcurl
Just FYI, if you add 'pragma(lib, "curl");' to the top of your
curl.d file, you shouldn't need '-L-lcurl' any more; dmd will
add it automatically during linking.
Best,
Graham
> =====
> import std.stdio;
> import arsd.curl;
>
>
> void main() {
> writefln("%s", curl("http://arsdnet.net/dcode/curl.d"));
> }
> =====
>
> That fetches the code off my site and prints it out.
More information about the Digitalmars-d
mailing list