MAX_RETRY_TIMES
MAX_RETRY_TIMES
Retry no more than 10 times.
CUrl Request Class
implement simple class to request API with curl
Usage:
// retry 2 times when fail
$curl = new PhalApi_CUrl(2);
// GET
$rs = $curl->get('http://demo.phalapi.net/?service=Default.Index');
// POST
$data = array('username' => 'dogstar');
$rs = $curl->post('http://demo.phalapi.net/?service=Default.Index', $data);