a simple wrapper of curl for RESTful API testing