make a curl request function