curl 7.30.0 (plus our modifications)