Use a much more up to date and hopefully less fragile way to do http requests