adjusting curl setting to work with php safe mode