converted http to file and read the file