Added HTTP-POST support and updated example-code.