Skip to content

Latest commit

 

History

History
85 lines (62 loc) · 2.14 KB

ARCHIVE.md

File metadata and controls

85 lines (62 loc) · 2.14 KB

ARCHIVE of "Make HTTP request from inside WebAssembly" list

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.

Contents

Language Browsers and V8-based runtimes Standalone / server-side / WASI runtimes
PHP

PIB aka php-wasm

PHP

Product / ImplementationTLDR: UsageTLDR: Example code Doc Online demo WASM RuntimeInternals: 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));

Example

Doc

Browser, Node.js, and maybe Deno

Manual JS XMLHttpRequest interop using vrzno PHP extension.