curl replaced by net/http