Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

D equivalent to XMLHttpRequest functions

Tags:

httprequest

d

I am looking for an example code to make an http request in D, something how the XMLHttpRequest of jscript.

like image 339
The Mask Avatar asked Feb 12 '11 18:02

The Mask


People also ask

How do you show responses in HTML?

Use the following instructions to create an HTML Response object. Go to Configuration > Objects > HTML Response. In the Name field, type a suitable name for the HTML Response object. In the HTML Response text box, type the HTML code for the response.


1 Answers

Some people have created wrappers for libcurl, which you can use to make http requests.

Try this one. https://github.com/gmfawcett/d-play-libcurl/blob/master/fawcett/curl.d

like image 164
leebriggs Avatar answered Oct 08 '22 23:10

leebriggs