Change from curl to wget with variables