add get, put, post, delete method to the Curl class