The API is still under development. If you want to try, the current API looks like this:
d3.text("/test") .header("Content-type", "application/x-www-form-urlencoded") .post("a=1&b=2&c=3", function(error, text) { console.log(text); });
You can also use d3.xhr, not d3.text, if you want to get the full request object, not just responseText.
Edit: Updated to the latest API.
source share