This is a looper (the caterpillar of a moth in the Geometridae family). I don't know what species it is, but it looks like the twig-mimicking caterpillar of the Swallow-tailed Moth (Ourapteryx sambucaria), so it may be a related species.