Converted Get and Post methods to work with AysncTask