redirect after curl