$cu = curl_init();
curl_setopt($cu, CURLOPT_RETURNTRANSFER, true);
curl_setopt($cu, CURLOPT_TIMEOUT, 5);
curl_setopt($cu, CURLOPT_URL, '****');
$c = curl_exec($cu);
$info = curl_getinfo($cu);
print $info['http_code'];
2018-06-05 22:59:36
浏览 2259
$cu = curl_init();
curl_setopt($cu, CURLOPT_RETURNTRANSFER, true);
curl_setopt($cu, CURLOPT_TIMEOUT, 5);
curl_setopt($cu, CURLOPT_URL, '****');
$c = curl_exec($cu);
$info = curl_getinfo($cu);
print $info['http_code'];
随时随地看视频慕课网APP
相关课程