Cleaning up http requesting