Add flag to force curl mode

This is required in order to use a proxy until requests is fixed.