(PHP 4 >= 4.0.2, PHP 5)
curl_exec — Executa uma sessão CURL
Executa uma dada sessão cURL.
Esta função deve ser chamada após você iniciar uma sessão CURL e todas as opções para a sessão CURL estiverem definidas.
Retorna TRUE em caso de sucesso ou FALSE em falhas. Contudo, se a opção CURLOPT_RETURNTRANSFER é definida, irá retornar o resultado em sucesso, FALSE em falha.
Exemplo #1 Obtendo uma página
<?php
// create a new cURL resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
curl_setopt($ch, CURLOPT_HEADER, 0);
// grab URL and pass it to the browser
curl_exec($ch);
// close cURL resource, and free up system resources
curl_close($ch);
?>