correct curl redirect