On 8/23/2011 2:33 PM, Walter Bright wrote:
1. The first, most obvious thing I'd like to do is present a URL and get a
string back that is the contents of that web page:

string contents = getURL("http://www.digitalmars.com";);

and contents[] should be the web page; what I'd see if I opened it in a browser
and selected "view source". From perusing the etc.curl doc I have absolutely no
idea how to do this.

I should add that this should be multithreadable, as I expect calls to curl from multiple threads and they should not step on each other.


3. A lot of web sites like twitter.com have an API. How do I access that API
from D?

For example, I'd like a program that I can write and run like:

   tweet WalterBright -pw=1234 "I had eggs for breakfast"

This could be in the D samples directory.

Reply via email to