made curl follow redirect