fix custom uri, curl return code