allow redirects with curl even when open_basedir is set or safe_mode is turned on