Visit aspx page from code

I think it is a simple one:
I have an aspx page that updates a database lets say ""
how do I visit this page from the code?


Take a look at the agent http api - specifically the get, put, post, and request functions.

i tried it with:
function HttpPostWrapper (url, headers, string) { local request =, headers, string); local response = request.sendsync(); return response; }
and than:
and i am getting:
[Device] ERROR: the index ‘http’ does not exist
what am i doing wrong?

It will only work for agent code. I think you’ve typed it into the device code window.

Also see agent.send and device.on for passing the value from device to agent.