request function implmented, to make single request