curling for token