我们正在运行以下php代码:
function downloadwebsite($url, $nobody=false) {
$ch = curl_init();
// FLAGS
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_NOBODY, $nobody);
curl_setopt($ch, CURLOPT_HEADER, $nobody);
$content = curl_exec($ch);
curl_close($ch);
return $content;
}
$website = downloadwebsite("www.imdb.com", true);
echo nl2br($website);
在回复的一行中,它说:“Cneonction:close”。 为什么拼写错误?是故意的吗?