Sample for downloading a file from http