Get request function