curl helper class for php designed to facilitate xpath queries