Update for new http library