Http.post() more examples please

I think I must have missed something here, I am requesting a Prowl using the following:

local req = http.post( “http://api.prowlapp.com/publicapi/add?apikey=apikey…&application=mine&event=1”, {"Content-Type: “application/x-www-form-urlencoded” }, “body”)

req.send_async( function(response) {
device.send(“success”, response.statusCode);
});

And get an error back: the index ‘send_async’ does not exsisit at unknown:(second line of code) I am guessing that the local variable req has not been created?

It’s called “sendasync”, not “send_async”. Also, it’s “statuscode” not “statusCode”. Looks like our documentation needs a bit of editing.

Peter