I have written a very small example: a junit button which sends a POST request with a pair of values:
You are receiving a 403 because of CSRF protection - you have not provided a token to protect yourself from attacks. The documentation tells you all you need to know.