function kaynak( $adres, $ileti = false )
{
$işlem = curl_init();
$başlık[0] = "Accept: text/xml,application/xml,application/xhtml+xml,";
$başlık[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
$başlık[] = "Cache-Control: max-age=0";
$başlık[] = "Connection: keep-alive";
$başlık[] = "Keep-Alive: 300";
$başlık[] = "Accept-Charset: ISO-8859-9,utf-8;q=0.7,*;q=0.7";
$başlık[] = "Accept-Language: en-us,en;q=0.5";
$başlık[] = "Pragma: ";
curl_setopt($işlem, CURLOPT_URL, $adres);
curl_setopt($işlem, CURLOPT_USERAGENT, 'Googlebot/2.1 (+http://www.google.com/bot.html)');
curl_setopt($işlem, CURLOPT_HTTPHEADER, $başlık);
curl_setopt($işlem, CURLOPT_REFERER, 'http://www.google.com');
curl_setopt($işlem, CURLOPT_ENCODING, 'gzip,deflate');
curl_setopt($işlem, CURLOPT_AUTOREFERER, true);
curl_setopt($işlem, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($işlem, CURLOPT_TIMEOUT, 10);
curl_setopt($işlem, CURLOPT_POST, $ileti ? true : false );
curl_setopt($işlem, CURLOPT_POSTFIELDS, $ileti ? $ileti : false );
$html = curl_exec( $işlem );
curl_close( $işlem );
return $html;
}