adding method to fetch values from HTTP requests