首页 > 代码库 > php curl-class post
php curl-class post
use \Curl\Curl;
$curl = new Curl();
$curl->setHeader(‘Content-Type‘, ‘application/json‘);
$curl->post(‘http://yuexingy.top:5100/withdraw/withdraw.php‘, json_encode($data));
if ($curl->error) {
//echo ‘Error: ‘ . $curl->errorCode . ‘: ‘ . $curl->errorMessage . "\n";
Log::debug(‘error:‘ . $curl->errorCode . ‘ errorMessage:‘ . $curl->errorMessage . ‘\n‘);
} else {
Log::info(‘Data server received via POST:‘ . "\n");
//var_dump($curl->response);
$re->Status = 3;
$re->WithdrawPlatform = 2;
$re->save();
}
php curl-class post
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。