$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.xxx.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$rtn = curl_exec($ch);
curl_close($ch);
最简单的Curl实例
最新推荐文章于 2022-10-11 17:17:06 发布
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.xxx.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$rtn = curl_exec($ch);
curl_close($ch);