Take a look at the following post:
You can change the get to a post call and modify for your needs.
get
post