use http post to communicate between server and client