switch from curl to request module