following redirect when curling