How to make a web request with Apple's UIAutomation JS framework

Is it possible to make a simple web request using the JS UIAutomation framework provided by Apple?

I tried couple of variations including browser's XMLHttpRequest

var request = new XMLHttpRequest()

and node's http

var request = require('http')

But I am not able to figure out how to use either of them. Any workarounds that might work?

No, it's not possible, or at least not in a simple way.

It can be done using UIAHost object, added in iOS 5.

Look this question and answers: Issuing a synchronous HTTP GET request or invoking shell script in JavaScript from iOS UIAutomation