add curl options to follow redirect