add post_request function