set curlopts