Just change
GET
in the above snippet to POST
. The API for http_listener
can be found here. Specifically, look at the "support" function.