use $response to post data to the server