change the client http call to post request