made curl redirect proof