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
=====
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.