$params = array(
'email' => 'XXX@gmail.com',
'password' => 'XXXX',
);
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,'http://apppf.sinaapp.com/mail/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,urldecode(http_build_query($params)));
$res = curl_exec($ch);
curl_close($ch);
if($res) {
print_r(json_decode($res));
}
'email' => 'XXX@gmail.com',
'password' => 'XXXX',
);
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,'http://apppf.sinaapp.com/mail/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,urldecode(http_build_query($params)));
$res = curl_exec($ch);
curl_close($ch);
if($res) {
print_r(json_decode($res));
}