Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Duktape make http requests

Tags:

duktape

I have a very simple duktape plugin running embedded in another program. Simple stuff works, but I am not sure how to make HTTP requests. Is it even possible to make HTTP Request from within a Duktape VM?

like image 866
toddgeist Avatar asked Dec 10 '14 04:12

toddgeist


1 Answers

No you can't. The hosting application must provide it to Duktape. Duktape provides a JavaScript runtime but does not provide function you also find in browsers when using JavaScript.

like image 55
aggsol Avatar answered Sep 28 '22 15:09

aggsol