adding follow redirect to curl requests