标签:php curl用法
$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‘];
http://www.educity.cn/develop/685399.html
本文出自 “expect批量同步数据” 博客,请务必保留此出处http://4249964.blog.51cto.com/4239964/1597094
标签:php curl用法
原文地址:http://4249964.blog.51cto.com/4239964/1597094