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?
Can Duktape make http requests
2k Views Asked by toddgeist At
4
There are 4 best solutions below
0
On
In order to make http requests within your duktape program, you must bind a native function (in C if your program is in C) that will make the request and inject back the answer
No you can't. The hosting application must provide it to
Duktape.Duktapeprovides a JavaScript runtime but does not provide function you also find in browsers when using JavaScript.