support XMLHttpRequest

Signed-off-by: 3dseals <lional.king@gmail.com>