Fix how PHP versions < 5.37 handle curl requests