Caution
Approaches listed on this page are deprecated or/and do not longer work. They are collected here for historical purposes.
Each item has hyperlink to up-to-date alternative in the main list.
Language | Browsers and V8-based runtimes | Standalone / server-side / WASI runtimes |
---|---|---|
PHP |
Product / Implementation | TLDR: Usage | TLDR: Example code | Doc | Online demo | WASM Runtime | Internals: method to do real request |
---|---|---|---|---|---|---|
PIB: PHP in Browser aka php-wasm Caution This code does not work in php-wasm v0.0.8. Tip Use up-to-date method instead. |
$js=<<<JSCODE
var xhr=new XMLHttpRequest();
xhr.open('GET', 'https://httpbin.org/anything', 0);
xhr.send();
xhr.responseText;
JSCODE;
var_dump(vrzno_eval($js)); |
Browser, Node.js, and maybe Deno |
Manual JS |