Removing calls to deprecated classes and using internal method to get via http