send request function