Search code examples
duktape

Can Duktape make http requests


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?


Solution

  • 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.