Modify httpGet networking function to make 10 tries if fail