CURL review request
Adam Ruppe
destructionator at gmail.com
Wed Aug 24 11:45:14 PDT 2011
For what it's worth, my little curl.d module has one magic
function that just kinda does it all:
string curl(string url, string postData = null, string postDataContentType =
"application/x-www-form-data"); (or whatever the content type is)
This does simple stuff, then there's other ways to do fancier
things.
string site = curl("http://mysite.com/"); // fetch the html
curl("http://mysite.com/item", "a=20&b=30"); // does a POST
Adding basic FTP get/put based on the url might be a good one too.
More information about the Digitalmars-d
mailing list