curls fuction to get data from a url