Made one of the http functions a method instead of static because it was creating too many dependancies to call it from external libraries.