Visit aspx page from code

Hi,
I think it is a simple one:
I have an aspx page that updates a database lets say "http://somedomain.com/somepage.aspx?value=1"
how do I visit this page from the code?

thanks.

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 = http.post(url, headers, string); local response = request.sendsync(); return response; }
and than:
HttpPostWrapper("http://somedomain.com/somepage.aspx",{value=1});
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.