Using class url variable in curl requests