I have added the functionality for getting the data from http