implement send request function.